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. This evidence concerns the gene CYP24A1 and metabolic dysfunction-associated steatotic liver disease.