Introduction: Infiltration of T and B/plasma cells has been linked to NSCLC prognosis, but this has not been thoroughly investigated in relation to the expression of programmed death ligand 1 (PD-L1). Here, we determine the association of lymphocytes and PD-L1 with overall survival (OS) in two retrospective cohorts of operated NSCLC patients who were not treated with checkpoint inhibitors targeting the programmed death 1/PD-L1 axis. Moreover, we evaluate how PD-L1 positivity and clinicopathologic factors affect the prognostic association of lymphocytes.Methods: Cluster of differentiation (CD) 3 (CD3)-, CD8-, CD4-, forkhead box P3 (FOXP3)-, CD20-, CD79A-, and immunoglobulin kappa constant (IGKC)-positive immune cells, and tumor PD-L1 positivity, were determined by immunohistochemistry on tissue microarrays (n ¼ 705). Affymetrix data was analyzed for a patient subset, and supplemented with publicly available transcriptomics data (N ¼ 1724). Associations with OS were assessed by Kaplan-Meier plots and uni-and multivariate Cox regression.Results: Higher levels of T and B plasma cells were associated with longer OS (p ¼ 0.004 and p < 0.001, for CD8 and IGKC, respectively). Highly proliferative tumors with few lymphocytes had the worst outcome. No association of PD-L1 positivity with OS was observed in a nonstratified patient population; however, a significant association with shorter OS was observed in never-smokers (p ¼ 0.009 and p ¼ 0.002, 5% and 50% cutoff). Lymphocyte infiltration was not associated with OS in PD-L1-positive tumors (50% cutoff). The prognostic association of lymphocyte infiltration also depended on the patients' smoking history and histologic subtype.Conclusions: Proliferation, PD-L1 status, smoking history, and histology should be considered if lymphocyte infiltration is to be used as a prognostic biomarker.