The ratio of PD-L1+ neutrophils-to-PD-1+ T cells was higher in peritumoural tissue and better predicted the disease-free survival of patients with HCC. Here, CD274 is linked to hepatocellular carcinoma.