This study demonstrated that MgH2 alleviates ARDS in vitro and in vivo through regulating AKT/mTOR pathway and NF-κB/NLRP3/IL-1β pathway. This evidence concerns the gene MTOR and acute respiratory distress syndrome.