This study aims to elucidate the therapeutic effect and mechanism of Jingfang Granules on acute lung injury, and to investigate the regulatory effect of Jingfang Granules on the metabolic disorders of endogenous metabolites in feces and the homeostasis of intestinal microbiota in acute lung injury, mice were randomly divided into a sham group, a model group, and a Jingfang Granules group. After modeling, the mice were continuously administered for 6 days. Using ultra-high performance liquid chromatography quadrupole/electrostatic field orbital trap high-resolution mass spectrometry(UHPLC-HESI-QE-Orbitrap-MS/MS) metabolomics technology and 16S rRNA high-throughput sequencing technology, changes in endogenous small molecule substances and gut microbiota in mouse intestines were determined, and potential biomarkers were identified. The results showed that Jingfang Granules can regulate 11 biomarkers, including L-glutamic acid, succinic acid, arachidonic acid, linoleic acid, linolenic acid, phenylalanine, sphingosine, 2-hydroxy-2-methyl butyric acid, pyruvate, tryptophan, and palmitic acid. Metabolic pathway analysis was conducted on these 11 biomarkers using the online software MetaboAnalyst, identifying potential major metabolic pathways. Among them, a total of 10 metabolic pathways are closely related to the treatment of acute lung injury with Jingfang Granules, including alanine, aspartate and glutamate metabolism, aminoacyl-tRNA biosynthesis, citrate cycle(TCA cycle), alyoxylate and dicarboxylate metabolism, arginine and proline metabolism, linoleic acid metabolism and linolenic acid metabolism, nitrogen metabolism, D-glutamine and D-gluta-matemetabolism, phenylalanine, tyrosine and tryptophan biosynthesis, phenylalanine metabolism. The results of gut microbiota showed significant differences in bacteria, mainly including Bacteroides, Akkermansia, Lachnospiraceae_NK4A136_group, Lachnochlostridium, and Klebsiella. Spearman analysis confirms that Akkermansia and Lachnospiraceae_NK4A136_group is a significant positive correlation between the abundance of succinic acid, arachidonic acid, linolenic acid, linoleic acid, butyric acid, and pyruvate in the group; Bacteroides, Klebsiella, Lachnochlostrium are significantly positively correlated with the abundance of L-glutamic acid, phenylalanine, and sphingosine. The above results indicate that the therapeutic effect of Jingfang Granules on acute lung injury is achieved by improving the imbalance of gut microbiota in mice with acute lung injury, balancing the metabolism of alanine, biosynthesis of aminoacyl tRNA, aspartic acid, glutamate, tricarboxylic acid cycle, biosynthesis of phenylalanine, tyrosine, tryptophan, and metabolism of linoleic acid.