As shown in Table 3, BMI (OR, 1.31; 95% CI, 1.26–1.35; P < 0.001), TC (OR, 1.13; 95% CI, 1.03–1.23; P = 0.009), TG (OR, 1.25; 95% CI, 1.15–1.34; P < 0.001), HDL-C (OR, 0.41; 95% CI, 0.29–0.57; P < 0.001), TyG index (OR, 1.82; 95% CI, 1.58–2.10; P < 0.001), TG/HDL-C (OR, 1.14; 95% CI, 1.08–1.20; P < 0.001), and AST/ALT ratio (OR, 0.68; 95% CI, 0.55–0.85; P < 0.001) were associated with NAFLD. Here, GPT is linked to metabolic dysfunction-associated steatotic liver disease.