HCC patients with higher PD-L1 expression or immunoscore were associated with worse prognosis. Here, CD274 is linked to hepatocellular carcinoma.