These studies show that ER stress-mediated PD-L1 expression in macrophages can inhibit T-cell function and promote tumour cell escape from antitumour immunity. This evidence concerns the gene CD274 and neoplasm.