Collectively, our study reveals the impact of both PD-L1 and PD-L2 on the HCC tumor microenvironment for the first time, providing insight for new therapeutic options. Here, CD274 is linked to hepatocellular carcinoma.