In males, the proportion of smokers, BMI, VFA, SFA, SBP, DBP, TC, LDL-c, TG, TG/HDL-c, FBG, ALT, AST, GGT, UA, Hb and HOMA-IR were positively correlated with NAFLD, while age, duration of diabetes, HDL-c, UACR and SPISE were negatively correlated (all P < 0.05). The gene discussed is GSTM1; the disease is metabolic dysfunction-associated steatotic liver disease.