Objective To explore and analyze the effect of comprehensive nursing care in endoscopic treatment of esophageal and gastric varicose bleeding. Methods A retrospective analysis of 60 cases of patients with esophageal and gastric varicose hemorrhage admitted to the hospital was conducted. The patients were randomly divided into 30 cases of control group and 30 cases of observation group. Routine nursing and comprehensive nursing were adopted respectively to evaluate different nursing effects. Results Intraoperative and postoperative heart rate of the observation group (91.0 ± 4.0) times/min, (89.2 ± 4.2) times/min, which were lower than (98.0 ± 4.2) times/min, (94.7 ± 4.5) times/min of the control group. There was statistically significant difference (t values were 6.610, 4.894, P < 0.05). The bleeding prevention effectiveness rate of the observation group (93.33%, 28/30) was higher than the control group (73.33%, 22/30), The difference was statistically significant (χ2 value was 4.32, P < 0.05). The total nursing satisfaction rate (100.00%, 30/30) in the observation group was higher than that in the control group (86.70%, 26/30), the difference was statistically significant (χ2 value was 4.29, P< 0.05). Quality of life, disease cognition, compliance behavior, proper rest, self-protection, General Quality of life Inventory (GQOLI) score in the observation group were (33.5 ± 3.5), (21.5 ± 3.7), (32.5 ± 2.8), (21.5 ± 3.3), (22.0±4.2), (130.2 ± 17.4) points, which were higher than those in the control group (28.2 ± 3.2), (17.5 ± 2.5), (28.5 ± 3.0), (17.2 ± 3.0), (18.0 ± 3.0), and (110.2 ± 15.2) points. The differences were statistically significant (t values were 4.245-6.121, P<0.05). Conclusions Endoscopic treatment of esophageal and gastric varicose bleeding patients combined with comprehensive nursing intervention, can effectively prevent the occurrence of rebleeding, improve the quality of life of patients. The application effect is significant. Key words: Nursing care; Endoscopy; Esophageal and gastric varicose bleeding