Based on the GSE13195 and TCGA-STAD datasets, we identified five key genes, FCER1G, MRPL14, SOSTDC1, TYROBP, and C3, which presented different expression patterns in H. pylori-associated GC and normal tissues, where C3 may affect the prognosis of GC patients. Here, SOSTDC1 is linked to gastric cancer.