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. This evidence concerns the gene GPT and metabolic dysfunction-associated steatotic liver disease.