In this study, we found that CCR7 was expressed in both tumor cells and stromal cells through the IHC analysis of TMA, spatial transcriptome and single-cell sequencing analysis of HCC tissues, but their effects were opposite. This evidence concerns the gene CCR7 and hepatocellular carcinoma.