Objective To investigate the clinical effect of canagliflozin in the treatment of chronic heart failure with type 2 diabetes mellitus.Methods A total of 80 patients with chronic heart failure and type 2 diabetes mellitus admit-ted to the First Affiliated Hospital of Shihezi University from January 2022 to June 2023 were selected as the research objects.According to different treatment methods,they were divided into two groups,with 40 cases in each group.The control group was treated with conventional heart failure,and the observation group was treated with canagliflozin on the basis of the control group.The clinical efficacy and energy metabolism indexes of the two groups were compared.Results The total effective rate of treatment in the observation group was higher than that in the control group,and the difference was statistically significant(P<0.05).The levels of fasting plasma glucose,glycated hemoglobin A1c,free fatty acid,adiponectin and leptin in the observation group were lower than those in the control group,and the differ-ences were statistically significant(all P<0.05).Conclusion Canagliflozin in the treatment of chronic heart failure complicated with type 2 diabetes mellitus can improve the blood glucose and myocardial metabolism of patients and improve the therapeutic effect.