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. Here, CD8A is linked to neoplasm.