Ultimately, we identified IRAK3, TNFRSF1A, CX3CR1, and JUNB as diagnostic biomarkers for T2DM complicated with MAFLD associated with autophagy and endoplasmic reticulum stress. The gene discussed is CX3CR1; the disease is type 2 diabetes mellitus.