To investigate the effects and mechanisms of the Jiawei Pentongling formula (, JWPTL) in treating endometriosis-related pain using network pharmacology study and experimental validation. Active ingredients and relevant targets of JWPTL, as well as genes for endometriosis-related pain, were collected from public databases. Prediction of core targets and pathways of JWPTL against pain associated with endometriosis by protein-protein interaction (PPI) network work, gene ontology (GO), and Kyoto Encyclopedia of Genes and Genomes (KEGG) functional enrichment analysis. The Sprague-Dawley rat endo-metriosis model was constructed using the autologous endosomal transplantation method, and the successfully modeled rats were randomly divided into the model group and the JWPTL group, with 8 rats in each group. Another 8 rats were set up in the sham group. Rats in the JWPTL group used the rectal delivery method with the addition of JWPTL (7.77 g·kg-1·d-1) once a day for 28 d. Rats in the model and sham-operated groups were given equal amounts of saline using the same administration method. The 50% paw withdrawal threshold (PWT) of the rats was measured at different time points. After the intervention, the expression of phosphatidylinositol 3-kinase (PI3K) and protein kinase B (Akt) proteins and mRNA in endometriotic tissues was detected by immune-ohistochemistry and reverse transcription-polymerase chain reaction. From GeneCards, Online Mendelian Inheritance in Man and other databases, a total of 964 endometriosis (EMs) -related pain targets were screened, 142 active ingredients of JWPTL, 605 targets, and 221 potential targets were obtained by intersection of Venn diagram; 44 core targets were identified by constructing PPI network. KEGG enrichment analysis showed that JWPTL mainly involves the PI3K-Akt signaling pathway, estrogen signaling pathway, hypoxia inducible factor-1 signaling pathway, tumour necrotizing factor signaling pathway, and other signaling pathways in the treatment of EMs-related pain. Animal experiments showed that JWPTL could up-regulate the mechanical pain threshold and reduce the expression of PI3K and Akt proteins and mRNA in ectopic endometrial tissues of model rats. The present study preliminarily analyzed the pharmacological mechanism of the formula, and molecular docking and animal experiments showed the feasibility of this study, suggesting that the formula may inhibit the release of inflammatory factors and reverse the pain associated with EMs by downregulating the PI3K/Akt signaling pathway.