The results of present study revealed a remarkable association between the TyG index and NAFLD in patients with T2DM, and the TyG index is superior to HbA1c, FBG, AST/ALT ratio, and other lipid parameters in determining NAFLD risk. Here, GPT is linked to type 2 diabetes mellitus.