Coronary spastic angina (CSA) is common, and treatment options for refractory vasospastic angina are sometimes limited. Guizhifuling pills (GFP) have demonstrated efficacy in reducing CSA episodes, but their pharmacological mechanism remains unclear. To explore the mechanism of action of GFP in preventing and treating CSA, we employed network pharmacology and molecular docking to predict targets and analyze networks. We searched GFP chemical composition information and related targets from databases. The drug-target and drug-target pathway networks were constructed using Cytoscape. Then the protein–protein interaction was analyzed using the STRING database. Gene Ontology biological functions and Kyoto Encyclopedia of Genes and Genomes pathways were performed by the Metascape database, and molecular docking validation of vital active ingredients and action targets of GFP was performed using AutoDock Vina software. The 51 active components in GFP are expected to influence CSA by controlling 279 target genes and 151 signaling pathways. Among them, 6 core components, such as quercetin, β-sitosterol, and baicalein, may regulate CSA by affecting 10 key target genes such as STAT3, IL-6, TP53, AKT1, and EGFR. In addition, they are involved in various critical signaling pathways such as apelin, calcium, advanced glycation end product–receptor for advanced glycation end product, and necroptosis. Molecular docking analysis confirms favorable binding interactions between the active components of GFP and the selected target proteins. The effects of GFP in treating CSA involve multiple components, targets, and pathways, offering a theoretical basis for its clinical use and enhancing our understanding of how it works.