Huahong tablet, a commonly used clinical Chinese patent medicine, shows good efficacy in treating pelvic inflammation and other gynaecological infectious diseases. However, the specific composition of Huahong tablets, which are complex herbal formulations, remains unclear. Therefore, this study aims to identify the active compounds and targets of Huahong tablets and investigate their mechanism of action in pelvic inflammatory diseases. We utilised ultrahigh-performance liquid chromatography Q-Exactive-Orbitrap mass spectrometry and the relevant literature to identify the chemical components of Huahong tablets. The GNPS database was employed to further analyse and speculate on the components. Potential molecular targets of the active ingredients were predicted using the SwissTargetPrediction website. Protein-protein interaction analysis was conducted using the STRING database, with visualisation in Cytoscape 3.9.1. Gene Ontology (GO) and Kyoto Encyclopedia of Genes and Genomes (KEGG) pathway enrichment analyses were performed using the DAVID database. Additionally, a traditional Chinese medicine-ingredient-target-pathway network was constructed using Cytoscape 3.10.1. Molecular docking validation was carried out to investigate the interaction between core target and specific active ingredient. A total of 66 chemical components were identified, and 41 compounds were selected as potential active components based on the literature and the TCMSP database. Moreover, 38 core targets were identified as key targets in the treatment of pelvic inflammatory diseases with Huahong tablets. GO and KEGG enrichment analysis revealed 986 different biological functions and 167 signalling pathways. The active ingredients in Huahong tablets exert therapeutic effects on pelvic inflammatory diseases by acting on multiple targets and utilising different pathways. Molecular docking confirmed the high affinity between the specific active ingredients and disease targets.