Here, we systematically analyzed the associations between MTHFR rs1801133 C677T gene variant and food groups in relation to the risk of NAFLD in the Chinese population. Here, MTHFR is linked to metabolic dysfunction-associated steatotic liver disease.