The ESR1 expression level was significantly associated with the infiltrating levels of only B cells, CD8+ T cells, CD4+ T cells, and myeloid dendritic cells in HCC. Here, CD4 is linked to hepatocellular carcinoma.