These results suggested that SOX12 primarily affected the abundance of intratumoral Tregs and CD8+T‐cells of HCC. This evidence concerns the gene CD8A and hepatocellular carcinoma.