Ononin (ON) is an isoflavone with numerous reported bioactivities, including anti-oxidative, anti-inflammatory and neuroprotective effects. Autophagy is a critical homeostatic process in the body that has been reported to closely associate with the apoptotic processes of cardiomyocytes. Using flow cytometry, western blotting, echocardiography and Masson's staining, the present study investigated the effects of ON on H
2
O
2
-induced cardiomyocyte apoptosis and myocardial infarction, in addition to any potential underlying molecular mechanisms. H
2
O
2
treatment reliably induced apoptosis in H9C2 cells. The anti-apoptotic effects of ON were revealed by flow cytometry results and by the downregulation of cleaved-caspase 3. Further investigations indicated that ON may alleviate apoptosis by enhancing autophagy, as evidenced by increased microtubule-associated proteins 1A/1B light chain 3B expression and p62 degradation. Activation of the 5' AMP-activated protein kinase (AMPK)/mTOR pathway was observed after ON administration following H
2
O
2
-induced cardiomyocyte injury. However, these anti-apoptotic effects mediated by ON were lost after autophagy inhibition by chloroquine or AMPK inhibition by Compound C. Finally, the protective effects of ON on cardiomyocytes
in vitro
could also be observed
in vivo
. A myocardial infarction model was established by ligating the left anterior descending branch of the rat heart. Using echocardiography and Masson's staining, ON was shown to increase the ejection fraction and decrease cardiac fibrosis in rats with myocardial infarction. These results suggest that ON exerts cardioprotective effects by improving autophagy via the AMPK/mTOR signaling pathway.