Acute lung injury (ALI) is a common acute respiratory disease with high morbidity and mortality rate in pregnant women. Receptor activator of NF-κB ligand (TNFSF11, also known as RANKL) exerts either pro-inflammatory or anti-inflammatory effects on the immune response. LPS administration reduced the survival time (n = 10, p < 0.01), increased wet/dry ratio (n = 10, p < 0.001) and lung injury score (n = 10, p < 0.001), the elevated proportions of plasmacytoid dendritic cells (pDCs) (n = 10, p < 0.0001), tissue-resident DCs (resDCs) (n = 10, p < 0.0001), macrophages (n = 10, p < 0.0001), and neutrophils (n = 10, p < 0.0001), and the expressions of costimulatory molecules and inflammation cytokines (n = 10, p < 0.05) in lungs of pregnant mice, compared with non-pregnant mice. In vitro, progesterone up-regulated the expression of RANKL (n > 6, p < 0.05) on pulmonary fibroblasts. The results of cytokine arrays showed that the cytokines associated with inflammatory response and leukocyte differentiation were decreased in pulmonary fibroblasts after treatment with anti-RANKL neutralizing antibody, compared with control pulmonary fibroblasts. More notably, we found that Tnfsf11-/- pregnant mice had longer survival durations (n = 10, p < 0.01), lower lung injury scores (n = 10, p < 0.05), and lower immune cell infiltration (n = 10, p < 0.05). These data imply that the RANKL/RANK axis plays an essential role in LPS-induced ALI during pregnancy possibly through a variety of pathways.