In summary, we identified DEGs associated with mitochondrial metabolism in acute myocardial infarction and differences in the degree of immune cell infiltration in tissues after myocardial infarction through bioinformatics studies, and screened and verified the Aco2, Atp5a1, Ndufs3 and Ndufv1 genes in in vivo experiments, suggesting that these genes are important genes associated with mitochondrial metabolism in acute myocardial infarction, which provides support for the future use of targeting mitochondrial metabolism as a direction to counteract deterioration of cardiac function after MI. Here, ATP5F1A is linked to myocardial infarction.