Abstract:〔Abstract〕 Objective To explore the role of helicobacter pylori infection combined with gastric function test in early diagnosis of gastric cancer. Methods A total of 113 patients with gastric lesions in Xinxiang Central Hospital from June 2019 to June 2022 were selected as research objects, and divided into benign lesion group with 41 cases, precancerous lesion group with 37 cases and early gastric cancer group with 35 cases according to the results of endoscopy and pathological examination. Gastric function indexes [(gastrin-17 (G-17), pepsinogenⅠ (PGⅠ), pepsinogen Ⅱ (PGⅡ) and proteasogen ratio (PGR)] and helicobacter pylori infection of the three groups were compared. Results The serum levels of PGⅠ and PGR in the precancerous lesion group and early gastric cancer group were significantly lower than those in the benign lesion group. The serum levels of PGⅡ and G-17 in the early gastric cancer group were significantly higher than those in the benign lesion group. The serum level of G-17 in early gastric cancer group was significantly higher than that in the precancerous lesion group, the differences were statistically significant (P < 0.05). The positive rates of helicobacter pylori, PGR, PGⅠ and combined detection were gradually decreased in the early gastric cancer group, the gastric precancerous lesion group and the gastric benign lesion group. The positive rates of helicobacter pylori, PGR and PGⅠ in the early gastric cancer group were significantly higher than those in the benign lesion group and the precancerous lesion group, and the detection rate of combined detection was higher than that of the single detection method, the differences were statistically significant (P < 0.05). Conclusion Both helicobacter pylori infection and gastric function detection can reflect the lesions of early gastric cancer, and the combined detection of the two has a high diagnostic accuracy for gastric cancer, and can be used as a reference for the judgment of early gastric cancer.