The multivariate analysis showed that BMI (OR: 1.373, 95% CI: 1.336–1.412; P < 0.001), FPG (OR: 1.255, 95% CI: 1.166–1.350; P < 0.001), TG (OR: 1.436, 95% CI: 1.335–1.544; P < 0.001) and the ALT/AST ratio (OR: 2.400, 95% CI: 1.985–2.901; P < 0.001) were independent risk factors for NAFLD after adjusting for interactions between variables. Here, GPT is linked to metabolic dysfunction-associated steatotic liver disease.