Objective: The objective was to study the potential substance basis and action mechanism of Chuanxiong Rhizoma (CX) and Angelicae Dahuricae Radix (AD) on analgesia through network pharmacology and molecular docking. Materials and Methods: The active components and targets of CX and AD and pain-related genes were retrieved through Traditional Chinese Medicine Systems Pharmacology Database and Analysis Platform (TCMSP) and GeneCards database. Then, the co-action targets were found, protein–protein interaction network was constructed by the String database. The Cytoscape 3.7.1 was used to construct “CX-AD-active components-pain” network. Further enrichment analysis of Gene Ontology (GO) and Kyoto Encyclopedia of Genes and Genomes (KEGG) was carried out to predict its mechanism of action, the top four active components in the network were docked with the targets. Results: There are 26 compounds, 45 targets in the network. Among them, (Z)-ligustilide and beta-sitosterol, respectively, have more potential targets in CX and AD, and prostaglandin-endoperoxide synthase (PTGS2), PTGS1 have more ligands. GO analysis shows that molecular functions of CX and AD mainly performed through the G protein-coupled amine receptor activity, adrenergic receptor activity, and catecholamine binding. KEGG analysis indicates that they could exert analgesic effect on the pathways of regulating neuroactive ligand-receptor interaction, serotonergic synapse, and cGMP-PKG signaling pathway. Molecular docking results show that the active compounds are highly compatible with the structure of the protein receptor, and they interact through the hydrogen bond and π–π bond between the ligand and the active site residues. Conclusions: Through network pharmacology and molecular docking, this study preliminarily revealed the main active components, targets, and potential regulation network of CX and AD, providing a reference for the subsequent experimental research.