Acute myocardial infarction (AMI) remains a significant health challenge globally, highlighting the ongoing need for effective treatments. Shexiang-Tongxin dropping pill (STDP) is widely utilized as a therapeutic option for AMI in China and Southeast Asia. However, the intricate mechanisms of action of STDP against AMI remain largely unknown. The pharmacodynamic effects of STDP in treating AMI were evaluated both in vitro and in vivo using human umbilical vein endothelial cell oxygen-glucose deprivation, RAW264.7 cell inflammatory injury, and rat left anterior descending surgery models. The whole transcriptome sequencing was performed to analyze gene expression changes in experimental rat hearts after left anterior descending surgery. An integrative approach combining network pharmacology and sequencing data was used to determine the multi-target and multi-pathway mechanisms underlying the action of STDP against AMI. Molecular docking was conducted to identify the primary anti-AMI ingredients in STDP. STDP treatment significantly resisted AMI in vivo and protected against inflammatory and hypoxic injuries in vitro. It resulted in 63 % (901 of 1430) of genes showing restorative regulation in the AMI disease network, relating to the TGF-β, PI3K, apoptosis, and MAPK pathways. Validation experiments indicated that inhibiting apoptosis and ERK/MAPK pathways by reducing Bax and p-ERK1/2 expression levels in rat hearts may be a crucial mechanism of STDP against AMI. Molecular target prediction indicated that tanshinone IIA, salvianolic acid A, salvianolic acid B, and resibufogenin were the essential pharmacodynamic substances of STDP in AMI treatment. This study sheds light on novel mechanisms by which STDP rebalances the AMI disease network through its multi-target and multi-pathway effects. The findings offer data support for the more precise clinical application of STDP.