Our findings suggest DC, NK cells, M1 macrophages, CD8+ T cells, and B cells in the tumor and stroma are associated with an improved prognosis and stromal M2 macrophages, regulatory T cells and PD-L1 overexpression are associated with poorer prognosis in NSCLC. This evidence concerns the gene CD274 and non-small cell lung carcinoma.