In this study, a total of 1980 DEGs and 15 hub genes were selected, and TP53, CDK1, CCNB1, and CCNB2 might be the core genes of gastric cancer. This evidence concerns the gene TP53 and gastric cancer.