In sum, our study found that weight, BMI, ALT, AST, HDL, LDL, TG, total cholesterol, FBG, HbA1c, vitamin D, T2DM, and HT were risk factors for NAFLD. This evidence concerns the gene GPT and type 2 diabetes mellitus.