TNFSF10, SERPINB2, and TNFRSF1A were the only coexisting genes shared between MAFLD key genes and T2DM-related secreted proteins, enabling the construction of highly accurate diagnostic models for both disorders. Here, TNFSF10 is linked to type 2 diabetes mellitus.