Improving lung health in children requires understanding the risk factors for decreased lung function. Our objective was to investigate the association between serum 25-hydroxyvitamin D (25(OH)D) levels and lung function in children. We analyzed data from a prospective cohort of infants hospitalized with bronchiolitis (severe bronchiolitis), a group at high risk for developing childhood asthma. Children were followed longitudinally, and 25(OH)D and spirometry testing were conducted at ages 3 and 6, respectively. We used a multivariable linear regression adjusted for race/ethnicity, annual household income, premature birth, and secondhand smoke exposure to examine the association between serum 25(OH)D level and primary outcomes (percent predicted [pp] of forced expiratory volume in the first second (FEV1) and the forced vital capacity (FVC)) and secondary outcome (FEV1pp/FVCpp). Serum 25(OH)D level and age 6 spirometry were available for 363 children. In adjusted analyses comparing the highest quintile (Q5) of serum 25(OH)D (median 37 ng/mL) to the lowest quintile (Q1; median 18 ng/mL), FEV1pp was 6% lower (p= 0.03) in Q1. Likewise, FVCpp was 7% lower (p= 0.03) in Q1. There was no difference in FEV1pp/FVCpp across the serum 25(OH)D quintiles. Compared to children with higher vitamin D status at age 3, those with lower status had decreased FEV1pp and FVCpp at 6 years.