Here, we identified that the infiltration of regulatory T cells and resting mast cells was negatively correlated with the PD-L1 expression level in HCC. Here, CD274 is linked to hepatocellular carcinoma.