With advancements in the development of endoscopic technologies, the endoscopic submucosal dissection (ESD) has been one of the gold-standard therapies for early gastric cancer. To investigate the efficacy and safety ESD in the treatment of early gastric cancer and precancerous lesions in the elderly patients. Seventy-eight elderly patients with early gastric cancer and precancerous lesions admitted to the Third Affiliated Hospital of Qiqihar Medical University were selected and classified into two groups according to the different surgical therapies they received between January 2021 and June 2022. Among them, 39 patients treated with ESD were included in an experimental group, and 39 patients treated with endoscopic mucosal resection (EMR) were included in a control group. We compared the basic intraoperative conditions, postoperative short-term recovery, long-term recovery effects and functional status of gastric mucosa between the two groups; the basic intraoperative conditions included lesion resection, intraoperative bleeding and operation time; the postoperative short-term recovery assessment indexes were length of hospital stay and incidence of surgical complications; and the long-term recovery assessment indexes were the recurrence rate at 1 year postoperatively and the survival situation at 1 year and 3 years postoperatively; and we compared the preoperative and predischarge serum pepsinogen I (PG I) and PG II levels and PG I/PG II ratio in the two groups before surgery and discharge. The curative resection rate and the rate of en bloc resection were higher in the experimental group than in the control group. The intraoperative bleeding volume was higher in the experimental group than in the control group. The operation time was longer in the experimental group than that in the control group, and the rate for base residual focus was lower in the experimental group than that of the control group, and the differences were all statistically significant (all P < 0.05). The length of hospital stay was longer in the experimental group than in the control group, and the incidence of surgical complications, 1-year postoperative recurrence rate and 3-year postoperative survival rate were lower in the experimental group than in the control group, and the differences were statistically significant (all P < 0.05). However, the difference in the 1-year postoperative survival rate was not statistically significant between the two groups (P > 0.05). Before discharge, PG I and PG I/PG II ratio were elevated in both groups compared with the preoperative period, and the above indexes were higher in the experimental group than those in the control group, and the differences were statistically significant (both P < 0.05). Moreover, before discharge, PG II level was lower in both groups compared with the preoperative period, and the level was lower in the experimental group than in the control group, and the differences were all statistically significant (all P < 0.05). Compared with EMR, ESD surgery is more thorough. It reduces the rate of base residual focus, recurrence rate, surgical complications, and promotes the recovery of gastric cells and glandular function. It is safe and suitable for clinical application.