Our study of primary prostate cancer demonstrates an abundant immune cell infiltrate dominated by CD68+ cells with higher density of peritumoral PD-L1+ cells being an independent risk factor for BCR and of peritumoral CD20+ cells being an independent risk factor for metastatic disease. Here, CD274 is linked to prostate carcinoma.