Introduction. Network pharmacology is in line with the holistic characteristics of TCM and can be used to elucidate the complex network of interactions between disease-specific genes and compounds in TCM herbal medicines. Here, we investigate the pharmacological mechanism of Xiaokui Jiedu decoction (XJD) for the treatment of ulcerative colitis (UC). Methods. The Computational Systems Biology Laboratory Platform (TCMSP) database was searched and screened for the active ingredients of all drugs in XJD. The Uniport database was used to retrieve possible gene targets for the therapeutic effects of XJD. GeneCards, PharmGKB, TTD, and OMIM databases were used to retrieve XJD-related gene targets. A herb-compound-protein network and a protein-protein interaction (PPI) network were constructed, and hub genes were screened for Gene Ontology (GO) and Kyoto Encyclopedia of Genes and Genomes (KEGG) enrichment analyses. Finally, molecular docking was performed to validate the interrelationship between disease target proteins and active drug components. Results. A total of 135 XJD potential action targets, 5097 UC-related gene targets, and 103 XJD-UC intersection gene targets were screened. The hub gene targets of XJD that exert therapeutic effects on UC are RB1, MAPK1, TP53, JUN, NR3C1, MAPK3, and ESR1. GO enrichment analysis showed 741 biofunctional enrichments, and KEGG enrichment analysis showed 124 related pathway enrichments. Molecular docking showed that the active components of XJD (β-sitosterol, kaempferol, formononetin, quercetin, and luteolin) showed good binding activities to five of the six hub gene targets. Discussion. The active ingredients of XJD (β-sitosterol, kaempferol, formononetin, quercetin, and luteolin) may regulate the inflammatory and oxidative stress-related pathways of colon cells during the course of UC by binding to the hub gene targets. This may be a potential mechanism of XJD in the treatment of UC.