Objective: To analyze the effect of pantoprazole and omeprazole in the treatment of patients with gastric ulcer. Methods: The treatment effect, recurrence rate, helicobacter pylori negative conversion rate, adverse reaction status and pain relief time of the two groups were compared. Results: The total effective rate of the experimental group (97.78%, 44 / 45) was higher than that of the control group (84.44%, 38 / 45), P < 0.05;The recurrence rate (4.44%, 2 / 45) and Helicobacter pylori negative conversion rate (95.56%, 43 / 45) of the experimental group were significantly higher than those of the control group (P < 0.05); The incidence of adverse reactions in the experimental group (11.11%, 5 / 45) was lower than that in the control group (15.56%, 7 / 45) (P > 0.05);The pain relief time of the experimental group was (2.24 ± 1.16) d, which was shorter than that of the control group (P < 0.05). Conclusion: In the process of clinical treatment of gastric ulcer, pantoprazole has significant curative effect and low recurrence rate, which can eradicate Helicobacter pylori as soon as possible, shorten the pain time and make the treatment safer.