In conclusion, based on genes related to CD8 T cells, we developed three immune subtypes and an 8-gene prognostic signature to guide personalized therapy for GC patients. Here, CD8A is linked to gastric cancer.