Tanshinone IIA (TSN) extracted from danshen (Salviamiltiorrhiza) could protect cardiomyocytes against myocardial ischemia/reperfusion injury (IRI), however the underlying molecular mechanisms of action remain unclear. The aim of the present study was to identify the protective effects of TSN and its mechanisms of action through invitro studies. An anoxia/reoxygenation (A/R) injury model was established using H9c2 cells to simulate myocardial IRI invitro. Before A/R, H9c2 cardiomyoblasts were pretreated with 8 µM TSN or 10µM ferrostatin‑1 (Fer‑1) or erastin. The cell counting kit 8 (CCK‑8) and lactate dehydrogenase (LDH) assay kit were used to detect the cell viability and cytotoxicity. The levels of total iron, glutathione (GSH), glutathione disulfide (GSSG), malondialdehyde (MDA), ferrous iron, caspase‑3 activity, and reactive oxygen species (ROS) were assessed using commercial kit. The levels of mitochondrial membrane potential (MMP), lipid ROS, cell apoptosis, and mitochondrial permeability transition pore (mPTP) opening were detected by flow cytometry. Transmission electron microscopy (TEM) was used to observed the mitochondrial damage. Protein levels were detected by western blot analysis. The interaction between TSN and voltage‑dependent anion channel 1 (VDAC1) was evaluated by molecular docking simulation. The results showed that pretreatment with TSN and Fer‑1 significantly decreased cell viability, glutathione peroxidase4 (GPX4) protein and GSH expression and GSH/GSSG ratio and inhibited upregulation of LDH activity, prostaglandin endoperoxide synthase 2 and VDAC1 protein expression, ROS levels, mitochondrial injury and GSSG induced by A/R. TSN also effectively inhibited the damaging effects of erastin treatment. Additionally, TSN increased MMP and Bcl‑2/Bax ratio, while decreasing levels of apoptotic cells, activating Caspase‑3 and closing the mPTP. These effects were blocked by VDAC1 overexpression and the results of molecular docking simulation studies revealed a direct interaction between TSN and VDAC1. In conclusion, TSN pretreatment effectively attenuated H9c2 cardiomyocyte damage in an A/R injury model and VDAC1‑mediated ferroptosis and apoptosis served a vital role in the protective effects of TSN.