Based on a Gene Expression Omnibus (GEO) chip analysis combined with network pharmacology and molecular docking technology, in this study we explored the molecular targets and mechanism of the wuyao–ginseng medicine pair in the prevention and treatment of diarrhea-type irritable bowel syndrome (IBS-D). The Traditional Chinese Medicine Systems Pharmacology Database and Analysis Platform (TCMSP) was used to search for the chemical constituents and targets of wuyao and ginseng. The UniProt database was used to search for the target gene name. In the GEO database, IBS was searched to obtain GSE36701 and GSE14841 microarray data. We imported the intersection targets into the STRING database to construct a protein–protein interaction (PPI) network. Kyoto Encyclopedia of Genes and Genomes (KEGG) and Gene Ontology (Go) pathway analyses were performed using the Metascape database. A total of 30 active ingredients of wuyao–ginseng, 171 drug targets, 1257 IBS differentially expressed genes, and 20 drug-disease intersection genes were obtained from the GEO data. We screened the results and obtained the core active ingredients beta-sitosterol, DMPEC, Boldine, etc.; the core targets NCOA2, EGFR, VEGFA, etc.; and the key pathways P13K-Akt, MAPK, etc. The wuyao–ginseng medicine pair may be involved in inflammation-related signaling pathways, acting on disease targets such as NCOA2, EGFR, and VEGFA as well as pathways such as P13K-Akt and MAPK, thereby playing a key role in the prevention and treatment of IBS-D.