Gas explosions are a recurrent event in coal mining that cause severe pulmonary damage due to shock waves, and there is currently no effective targeted treatment. To illustrate the mechanism of gas explosion-induced lung injury and to explore strategies for blast lung injury (BLI) treatment, the present study used a BLI rat model and supplementation with metformin (MET), an AMP-activated protein kinase (AMPK) activator, at a dose of 10 mg/kg body weight by intraperitoneal injection. Protein expression levels were detected by western blotting. Significantly decreased expression of phosphorylated (p)-AMPK, peroxisome proliferator-activated receptor-γ coactivator-1α (PGC1α) and metabolic activity were observed in the BLI group compared with those in the control group. However, the mitochondrial stability, metabolic activity and expression of p-AMPK and PGC1α were elevated following MET treatment. These results suggested that MET could attenuate gas explosion-induced BLI by improving mitochondrial homeostasis. Meanwhile, high expression of nicotinamide adenine dinucleotide phosphate oxidase (NOX2) and low expression of catalase (CAT) were observed in the BLI group. The expression levels of NOX2 and CAT were restored in the BLI + MET group relative to changes in the BLI group, and the accumulation of oxidative stress was successfully reversed following MET treatment. Overall, these findings revealed that MET could alleviate BLI by activating the AMPK/PGC1α pathway and inhibiting oxidative stress caused by NOX2 activation.