BACKGROUNDEndometriosis is a gynecological disease that causes severe chronic pelvic pain and infertility in women. The therapeutic efficacy of the traditional herbal combination of Sparganium stoloniferum-Curcuma phaeocaulis (Sangleng-Ezhu, SL-EZ) in the treatment of endometriosis has been established. However, the precise mechanism by which this treatment exerts its effects remains elusive.METHODSTo gain further insights, UPLC-MS/MS was employed to identify the primary chemical constituents of SL-EZ in serum. Additionally, network pharmacology was utilized to analyze the active ingredients and their corresponding targets. Furthermore, the impact of SL-EZ on ectopic endometrial growth in endometrial implants was assessed using a rat model. The therapeutic mechanism of SL-EZ in rats with endometriosis was further investigated through the application of 16 S rRNA gene sequencing, metagenomic sequencing, and metabolomics.RESULTSThe primary compounds in serum were zederone, p-coumaric acid, dehydrocostus lactone, curdione, curcumol. The growth of ectopic lesions in a rat model was effectively inhibited by SL-EZ. In comparison to the control group, the endometriotic rats exhibited a decrease in α-diversity of the gut microbiota, an increase in the Firmicutes/Bacteroidetes ratio, and a reduction in the abundance of Ruminococcaceae. Following SL-EZ intervention, the potential probiotic strains Lactobacillus gasseri and Lactobacillus johnsonii were able to restore the intestinal microenvironment at the species level. The altered metabolites were significantly correlated with Verrucomicrobia, Proteobacteria, and Bacteroidetes. The metabolomic analysis demonstrated significant alterations in intestinal metabolites. And SL-EZ intervention also exerted regulatory effects on various metabolic pathways in gut microbiota, including aminoacyl-tRNA biosynthesis, monobactam biosynthesis, cyanoamino acid metabolism, glycine, serine and threonine metabolism, plant secondary metabolite biosynthesis, and amino acid biosynthesis.CONCLUSIONThe identification of novel treatment formulations for endometriosis was achieved through the utilization of network pharmacology and gut microbiota analyses. Our findings revealed simultaneous alterations in the microbiota within the rat model of endometriosis. The therapeutic efficacy of SL-EZ in treating endometriosis is attributed to its ability to restore the gut microbiota and regulate metabolism. This investigation offers valuable insights into the therapeutic mechanisms of traditional Chinese medicine (TCM) for endometriosis.