High CD8/CD33 ratio and high infiltration of CD8+ lymphocytes into peritoneal metastatic lesions were associated with favorable prognosis in gastric cancer patients with peritoneal metastasis. Here, CD8A is linked to gastric cancer.