These results indicated that tumor-infiltrating CD3+ T cells and CD8+ T cells in HCCA play a key role in tumor immunity in the cancer microenvironment and influence the survival prognosis of patients. Here, CD8A is linked to cancer.