According to the results of our analysis, the degree value of the TP53 gene is the highest among the 10 hub genes, and its increased expression is negatively correlated with the five-year survival rate of gastric cancer, which further confirms the validity of this study. This evidence concerns the gene TP53 and gastric cancer.