Our results indicated that the intensity of infiltrating CD8+T cells had a prognostic value in human HCC and ICC. Here, CD8A is linked to hepatocellular carcinoma.