Myocardial infarction (MI) is one of the leading causes of death worldwide because of its high morbidity and mortality. Traditional Chinese Medicine compounds play a crucial role in preventing cardiovascular diseases. Danggui Sini Decoction (DSD) is widely used clinically for cardiovascular diseases. However, the mechanism, main components, and main targets of DSD in treating MI are still unclear. In this study, we utilized network pharmacology and molecular docking for exploration. MI-related genes were examined using the Genecards database, and the active ingredients of DSD were screened based on System Pharmacology Database and Analysis Platform of Traditional Chinese Medicine by oral bioavailability ≥ 30% and drug-likeness ≥ 0.18. The protein-protein interaction network diagram was generated using the STRING database. The DAVID web platform was used to carry out gene ontology and Kyoto encyclopedia of gene and genome signaling pathway analysis. DSD's screening study revealed 120 primary active ingredients and 561 putative active target genes. The main therapeutic targets were TP53, EGFR, AKT1, IL6, TNF, STAT3, IL1B, CTNNB1, SRC, MYC, JUN, and INS. Gene ontology and Kyoto encyclopedia of gene and genome analyses revealed that DSD treatment of MI mainly involves the positive regulation of the ERK1 and ERK2 cascades, positive regulation of cell proliferation, inflammatory responses, aging, and the MAPK cascade, along with other biological processes. The molecular docking results indicate that DSD drugs may interact with AKT1, EGFR, TP53, and TNF through formononetin, isorhamnetin, β-Sitosterol, and kaempferol, potentially contributing to the treatment of MI. By utilizing a multi-component, multi-pathway, and multi-target mode of action, DSD may have the potential to prevent MI.