Background: This study aimed to screen out the effective active components of Yinchenhao decoction (YCHD) using network pharmacology, estimate their potential targets, screen out the pathways, as well as delve into the potential mechanisms on treating cholangiocarcinoma. Methods: By the traditional Chinese medicine system pharmacology database and analysis platform (TCMSP) as well as literature review, the major active components and their corresponding targets were estimated and screened out. Using the software Cytoscape 3.6.0, a visual network was established using the active components of YCHD and the targets of cholangiocarcinoma. Based on STRING online database, the protein interaction network of vital targets was built and analyzed. With the Database for Annotation, Visualization, and Integrated Discovery (DAVID) server, the gene ontology (GO) biological processes and the Kyoto encyclopedia of genes and genomes (KEGG) signaling pathways of the targets enrichment were performed. The AutoDock Vina was used to perform molecular docking and calculate the binding affinity. The PyMOL software was utilized to visualize the docking results of active compounds and protein targets. In vivo experiment, the IC50 values and apoptosis rate in PI-A cells were detected using CCK-8 kit and Cell Cycle Detection Kit. The predicted targets were verified by the real-time PCR and western blot methods. Results: 32 effective active components with anti-tumor effects of YCHD were sifted in total, covering 209 targets, 96 of which were associated with cancer. Quercetin, kaempferol, beta-sitosterol, isorhamnetin, and stigmasterol were identified as the vital active compounds, and AKT1, IL6, MAPK1, TP53 as well as VEGFA were considered as the major targets. The molecular docking revealed that these active compounds and targets showed good binding interactions. These 96 putative targets exerted therapeutic effects on cancer by regulating signaling pathways (e.g., hepatitis B, the MAPK signaling pathway, the PI3K-Akt signaling pathway, and MicroRNAs in cancer). Our in vivo experimental results confirmed that YCHD showed therapeutic effects on cholangiocarcinoma by decreasing IC50 values, down-regulating apoptosis rate of cholangiocarcinoma cells, and lowering protein expressions. Conclusion: As predicted by network pharmacology strategy and validated by the experimental results, YCHD exerts anti-tumor effects through multiple components, targets, and pathways, thereby providing novel ideas and clues for the development of preparations and the treatment of cholangiocarcinoma.