In summary, our findings indicate that simvastatin could downregulate NLRP3 inflammasome activation and attenuate lung injury in hyperoxia-induced bronchopulmonary dysplasia via KLF2-mediated mechanism. Here, NLRP3 is linked to bronchopulmonary dysplasia.