In this case-control study, we explored the associations of vitamin D family genes CYP2R1, CYP24A1, and CYP27B1 genetic polymorphism with the risk of NAFLD among Chinese Hans. The gene discussed is CYP27B1; the disease is metabolic dysfunction-associated steatotic liver disease.