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, PDCD1LG2 is linked to hepatocellular carcinoma.