Our study demonstrated that the prognosis of HCC patients was associated with the pattern of infiltrating immune cells in TME, and macrophage-associated cytokines might be a potential non-invasive marker for predicting the PD-L1 level for HCC patients. This evidence concerns the gene CD274 and hepatocellular carcinoma.