Taken together, the upregulation of HSF2 expression is significantly associated with the progression and poor prognosis of HCC and immune cell infiltration, indicating that HSF2 may represent a target for early diagnosis, prognostic predictions and immunotherapy. This evidence concerns the gene HSF2 and hepatocellular carcinoma.