Using two independent bulk RNA-seq datasets, we found the mean of expression of XCL1 and CD8A could be an independent factor for prognosis of HCC, and next built a prediction score with five marker genes involved in XCL1+ CD8+ T cell population. This evidence concerns the gene XCL1 and hepatocellular carcinoma.