In a multivariable regression analysis, the risk of NAFLD was significantly higher among overweight T2DM patients (aOR = 6.112, 95% CI: 1.529–4.432), Obese (aOR = 10.455, 95% CI: 2.645–41.326), with high ALT of more than 12 IU/L (aOR = 2.335, 95% CI: 1.096–5.062), moderate diet-compliant patients (aOR = 2.413, 95% CI: 1.003–5.805) and poor diet-compliant patients (aOR = 6.562, 95% CI: 2.056–20.967). Here, GPT is linked to metabolic dysfunction-associated steatotic liver disease.