Objective To analyze the effect of dapagliflozin in elderly patients with diabetes mellitus combined with chronic heart failure.Methods A total of 80 patients with diabetes combined with chronic heart failure admitted to Luzhong Hospital of Peking University Medical college from March 2022 to May 2023 were selected as the study ob-jects and divided into study group and control group by random number table method,with forty patients in each group.Both groups received conventional heart failure treatment.The control group combined with metformin hydro-chloride tablets for treatment,the study group combined with dapagliflozin for treatment.The levels of left ventricular end diastolic diameter(LVEDD),left ventricular ejection fraction(LVEF),blood glucose and the occurrence of adverse events were compared between the two groups.Results After treatment,the LVEDD of the study group(51.69±1.38)mm was smaller than that of the control group,LVEF(53.67±3.67)%was higher than that of control group,and the differences were statistically significant(t=14.972,5.318,both P<0.05).The blood glucose level of the study group was lower than that of the control group,and the difference was statistically significant(P<0.05).The incidence of ad-verse events was compared between the two groups,and the difference was not statistically significant(P>0.05).Conclusion Dapagliflozin has a positive effect in the treatment of elderly patients with diabetes mellitus combined with chronic heart failure,which can improve the heart function of patients and reduce the blood glucose level of pa-tients,without increasing adverse events,and has a high safety.