In this study, we used multiplex immunohistochemistry and machine learning-based image analysis to comprehensively characterise PD-L1 and PD-1 immune checkpoint expression in M1-like and M2-like macrophages, T cells, and tumour cells in a large, population-based colorectal cancer cohort of 910 patients. Here, CD274 is linked to neoplasm.