Elevated CD8+T cells indicated a better overall survival (OS) rate, implying that tumor-infiltrating CD8+T cells in HCC and ICC could serve as an independent prognostic factor. This evidence concerns the gene CD8A and hepatocellular carcinoma.