Testosterone can affect cardiovascular disease, but its effects on mitochondrial dynamics in the post-infarct myocardium remain unclear. To observe the effects of testosterone replacement, a rat model of castration-myocardial infarction (MI) was established by ligating the left anterior descending coronary artery 2 weeks after castration with or without testosterone treatment. Expression of mitochondrial fission and fusion proteins was detected by western blot and immunofluorescence 14 days after MI. Cardiac function, myocardial inflammatory infiltration and fibrosis, cardiomyocyte apoptosis, mitochondrial microstructure, and ATP levels were also assessed. Compared with MI rats, castrated rats showed aggravated mitochondrial and myocardial insults, including mitochondrial swelling and disordered arrangement; loss of cristae, reduced mitochondrial length; decreased ATP levels; cardiomyocyte apoptosis; and impaired cardiac function. Results of western blotting analyses indicated that castration downregulated peroxisome proliferator-activated receptor gamma coactivator 1-alpha (PGC1A) and mitofusin 2, but upregulated dynamin-related protein 1. The results were also supported by results obtained using immunofluorescence. However, these detrimental effects were reversed by testosterone supplementation, which also elevated the upstream AMP-activated protein kinase (AMPK) activation of PGC1A. Thus, testosterone can protect mitochondria in the post-infarct myocardium, partly via the AMPK-PGC1A pathway, thereby decreasing mitochondrial dysfunction and cardiomyocyte apoptosis. The effects of testosterone were confirmed by the results of ELISA analyses.