In conclusion, our research shows that the systemic inflammatory markers, serum CD4 and CD19 and tumor infiltration of CD4+T cells, CD8+T cells, and CD19+B cells can predict the prognosis of GC patients. Here, CD8A is linked to gastric cancer.