In summary, age, BMI, SBP, DBP, ALT, AST, TC, TG, FPG, ethanol consumption, past and current smoking status, and GGT/HDL-C were positively associated with the incidence of T2DM. Here, GPT is linked to type 2 diabetes mellitus.