H. pylori infection was not related to sex or age in gastric cancer patients, but correlated with the depth of tumor invasion, lymph node metastasis, and tumor–node–metastasis stage (P < 0.05) and correlated with the COX-2 expression and beta-catenin expression(P < 0.01). Here, PTGS2 is linked to gastric cancer.