To develop nomograms for predicting disease-free survival (DFS) and overall survival (OS) of gastric cancer (GC) by integrating programmed death ligand 1 (PD-L1) and CD4+/CD8+ tumor-infiltrating lymphocytes (TILs) and CD163+ tumor-associated macrophages (TAMs). Here, CD274 is linked to gastric cancer.