The developed prognostic nomograms for GC integrating PD-L1 and CD4+/CD8+ TILs as well as CD163+TAMs offer a more personalized and precise prediction of DFS and OS for patients, which can help to improve prognostic stratification. Here, CD8A is linked to gastric cancer.