Recently, genome-wide studies identified genetic variants that affect serum 25-hydroxyvitamin D levels in healthy populations (rs12785878, near dehydrocholesterol reductase, DHCR7; rs10741657, at CYP2R1; and rs7041, at vitamin D binding protein, GC). Because vitamin D deficiency is associated with advanced liver disease, we hypothesized that these variants are associated with 25(OH)-vitamin D levels and liver fibrosis. Overall, 712 Caucasian patients with chronic liver diseases were included. Liver fibrosis was assessed by transient elastography (TE) and/or histology. Serum levels of 25(OH)-vitamin D were correlated with TE and fibrosis stages. Genotypes were determined using TaqMan assays and tested for association with vitamin D and liver stiffness. Serum 25(OH)-vitamin D levels were inversely correlated with liver stiffness and histology (P < 0.001). Homozygous carriers of the rare DHCR7 allele or the common CYP2R1 allele presented with reduced 25(OH)-vitamin D levels (P < 0.05). The variant rs12785878 in the DHCR7 locus was associated with liver stiffness in both patients with TE <7.0 kPa and TE between 7.0 and 9.5 kPa. 25(OH)-vitamin D levels correlated with sunshine hours at the time of inclusion (P < 0.001). Conclusion: Common variation in 25(OH)-vitamin D metabolism is associated with liver stiffness in patients presenting with low to moderately increased elasticity. Although the susceptible DHCR7 genotype confers small risk, we speculate that the observed stiffness differences indicate a stronger influence of 25(OH)-vitamin D on initiation rather than progression of hepatic fibrosis. (HEPATOLOGY 2012;56:1883–1891)