BackgroundVentilator-induced lung injury (VILI) is caused by overdistension of the alveoli by the repetitive recruitment and derecruitment of alveolar units. This study aims to investigate the potential role and mechanism of fibroblast growth factor 21 (FGF21), a metabolic regulator secreted by the liver, in VILI development.MethodsSerum FGF21 concentrations were determined in patients undergoing mechanical ventilation during general anesthesia and in a mouse VILI model. Lung injury was compared between FGF21-knockout (KO) mice and wild-type (WT) mice. Recombinant FGF21 was administrated in vivo and in vitro to determine its therapeutic effect.ResultsSerum FGF21 levels in patients and mice with VILI were significantly higher than in those without VILI. Additionally, the increment of serum FGF21 in anesthesia patients was positively correlated with the duration of ventilation. VILI was aggravated in FGF21-KO mice compared with WT mice. Conversely, the administration of FGF21 alleviated VILI in both mouse and cell models. FGF21 reduced Caspase-1 activity, suppressed the mRNA levels ofNlrp3,Asc, Il-1β, Il-18, Hmgb1andNf-κb, and decreased the protein levels of NLRP3, ASC, IL-1β, IL-18, HMGB1 and the cleaved form of GSDMD.ConclusionsOur findings reveal that endogenous FGF21 signaling is triggered in response to VILI, which protects against VILI by inhibiting the NLRP3/Caspase-1/GSDMD pyroptosis pathway. These results suggest that boosting endogenous FGF21 or the administration of recombinant FGF21 could be promising therapeutic strategies for the treatment of VILI during anesthesia or critical care.Supplementary InformationThe online version contains supplementary material available at 10.1186/s13054-023-04488-5.