This study investigated the effects of canagliflozin on myocardial dysfunction after cardiac arrest and cardiopulmonary resuscitation in diabetic rats and the underlying mechanisms. Male rats with type 2 diabetes mellitus (T2DM) were subjected to a modified epicardial fibrillation model. Pretreatment with canagliflozin (10 mg/kg/day) for four weeks improved ATP levels, post-resuscitation ejection fraction, acidosis, and hemodynamics. Canagliflozin also reduced myocardial edema, mitochondrial damage and, post-resuscitation autophagy levels.