Abstract Yixinyin, the traditional Chinese medicine, has the effects of replenishing righteous qi, and promoting blood circulation to eliminate blood stagnation. It is often used to treat patients with acute myocardial infarction (MI). The purpose of our study is to explore the key components and targets of Yixinyin in the treatment of MI. In this study, we analyzed gene expression data and clinical information from 248 samples of MI patients with the GSE34198, GSE29111 and GSE66360 data sets. By constructing a weighted gene co-expression network, gene modules related to myocardial infarction are obtained. These modules can be mapped in Yixinyin PPI network. By integrating differential genes of healthy/MI and unstable angina/MI, key targets of Yixinyin for the treatment of myocardial infarction were screened. We validated the key objectives with external data sets. GSEA analysis is used to identify the biological processes involved in key targets. Through molecular docking screening, active components that can combine with key targets in Yixinyin were obtained. In the treatment of myocardial infarction, we have obtained key targets of Yixinyin, which are ALDH2, C5AR1, FOS, IL1B, TLR2, TXNRD1. External data sets prove that they behave differently in the healthy and MI (P