After adjusted for age (OR = 0.923, 95%CI: 0.853–0.999; P = 0.046), time from T2DM diagnosis (OR = 0.919, 95%CI: 0.876–0.965; P = 0.001), HDL-C (OR = 0.089, 95%CI: 0.018–0.429; P = 0.003), and ALT (OR = 1.042, 95%CI: 1.007–1.079; P = 0.018), serum asprosin levels (OR = 1.006, 95%CI: 1.001–1.010; P = 0.014) were independently associated with MAFLD in T2DM. This evidence concerns the gene GPT and type 2 diabetes mellitus.