Multivariable analysis revealed, after adjusted for age, time from T2DM diagnosis, HDL-C, and ALT, serum asprosin level (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.