In this study, we observed a decrease in CD8+ Teff cell infiltration and an increase in Tem and Tex cell infiltration in HBV-positive HCC tissues. This evidence concerns the gene CD8A and hepatocellular carcinoma.