The above results suggest that environmental stress can upregulate DNAJC24 expression through HSF2, and upregulated DNAJC24 can promote the proliferation and motility of HCC cells, which in turn leads to poor prognosis of HCC patients. Here, HSF2 is linked to hepatocellular carcinoma.