This study demonstrated that MgH2 alleviates ARDS in vitro and in vivo through regulating AKT/mTOR pathway and NF-κB/NLRP3/IL-1β pathway. Here, IL1B is linked to acute respiratory distress syndrome.