Ultimately, we identified IRAK3, TNFRSF1A, CX3CR1, and JUNB as diagnostic biomarkers for T2DM complicated with MAFLD associated with autophagy and endoplasmic reticulum stress. Here, TNFRSF1A is linked to type 2 diabetes mellitus.