Molecular evidence suggests that levels of vitamin D are associated with kidney function loss. Still, population-based studies are limited and few have considered the potential confounding effect of baseline kidney function. This study evaluated the association of serum 25-hydroxyvitamin D with change in eGFR, rapid eGFR decline, and incidence of CKD and albuminuria. Baseline (2003-2006) and 5.5-year follow-up data from a Swiss adult general population were used to evaluate the association of serum 25-hydroxyvitamin D with change in eGFR, rapid eGFR decline (annual loss >3 ml/min per 1.73 m(2)), and incidence of CKD and albuminuria. Serum 25-hydroxyvitamin D was measured at baseline using liquid chromatography-tandem mass spectrometry. eGFR and albuminuria were collected at baseline and follow-up. Multivariate linear and logistic regression models were used considering potential confounding factors. Among the 4280 people included in the analysis, the mean±SD annual eGFR change was -0.57±1.78 ml/min per 1.73 m(2), and 287 (6.7%) participants presented rapid eGFR decline. Before adjustment for baseline eGFR, baseline 25-hydroxyvitamin D level was associated with both mean annual eGFR change and risk of rapid eGFR decline, independently of baseline albuminuria. Once adjusted for baseline eGFR, associations were no longer significant. For every 10 ng/ml higher baseline 25-hydroxyvitamin D, the adjusted mean annual eGFR change was -0.005 ml/min per 1.73 m(2) (95% confidence interval, -0.063 to 0.053; P=0.87) and the risk of rapid eGFR decline was null (odds ratio, 0.93; 95% confidence interval, 0.79 to 1.08; P=0.33). Baseline 25-hydroxyvitamin D level was not associated with incidence of CKD or albuminuria. The association of 25-hydroxyvitamin D with eGFR decline is confounded by baseline eGFR. Sufficient 25-hydroxyvitamin D levels do not seem to protect from eGFR decline independently from baseline eGFR.