Abstract:〔Abstract〕 Objective Investigating the clinical outcomes of gastrointestinal endoscopy in patients with bleeding duodenal ulcers. Methods A total of 90 patients with gastric ulcer and duodenal ulcer bleeding treated in Anyang People's Hospital from January 2021 to June 2022 were randomly divided into control group and observation group, with 45 cases in each group. The conventional drug regimen was used in the control group, and the digestive endoscopy regimen was used in the observation group. The clinical observation indicators, hemostatic treatment effects and hemostatic time distribution of the two groups were compared. Results The bleeding volume and blood transfusion volume of the observation group were less than those of the control group, and the hemostasis time and hospitalization time were shorter than those of the control group, the differences were statistically significant (P < 0.05). The hemostasis rate of the observation group was higher than that of the control group, and the incidence of rebleeding and surgical treatment rate were lower than those of the control group, and the differences were statistically significant (P < 0.05). The proportion of patients who stopped bleeding within 12 hours in the observation group was higher than that in the control group, the proportion of patients who stopped bleeding 12-48 hours and the rate of active bleeding after 48 hours in the observation group were lower than those in the control group, and the differences were statistically significant (P < 0.05). Conclusion Gastrointestinal endoscopic treatment is effective for patients with gastric ulcer and duodenal ulcer bleeding, which can effectively control the bleeding situation of patients and has high application value.