Objective To analyze the value of dapagliflozin in the treatment of diabetes mellitus combined with peptic ulcer.Methods A total of 86 patients with diabetes mellitus combined with peptic ulcer admitted to Minhou County People's Hospital from September 2022 to August 2023 were selected as the study objects and were divided into two groups with 43 cases in each group by the random number table method.The control group used metformin tablets,and the study group combined with dapagliflozin on the basis of the control group.Blood glucose indexes,clinical effi-cacy,adverse events and quality of life of the two groups were compared.Results After treatment,the study group had better blood glucose indexes,clinical efficacy,and quality of life compared with the control group,and the differences were statistically significant(all P<0.05).There was no statistically significant difference in the incidence of adverse events between the two groups(P>0.05).Conclusion Dapagliflozin in the treatment of diabetes mellitus combined with peptic ulcer can reduce blood glucose level,improve efficacy and quality of life,and is safe.