An increased rate of bronchopulmonary dysplasia (BPD) is reported in extremely preterm infants. A potential role of human milk feeding in protecting against this condition has been suggested. A retrospective descriptive study was conducted based on data about morbidity in the population of infants born between 22+0 and 26+6 weeks of gestation, included in the Spanish network SEN1500 during the period 2004-2019 and discharged alive. The primary outcome was moderate-severe BPD. Associated conditions were studied, including human milk feeding at discharge. The temporal trends of BPD and human milk feeding rates at discharge were also studied. In the study population of 4341 infants, the rate of moderate-severe BPD was 43.7% and it increased to >50% in the last three years. The factors significantly associated with a higher risk of moderate-severe BPD were birth weight, male sex, high-frequency oscillatory ventilation, duration of invasive mechanical ventilation, inhaled nitric oxide, patent ductus arteriosus, and late-onset sepsis. Exclusive human milk feeding and any amount of human milk at discharge were associated with a lower incidence of moderate-severe BPD (OR 0.752, 95% CI 0.629-0.901 and OR 0.714, 95% CI 0.602-0.847, respectively). During the study period, the proportion of infants with moderate-severe BPD fed any amount of human milk at discharge increased more than twofold. And the proportion of infants with moderate-severe BPD who were exclusively fed human milk at discharge increased at the same rate. Our work shows an inverse relationship between human milk feeding at discharge from the neonatal unit and the occurrence of BPD.