Targeted inhibition of STAT3 induces immunogenic cell death of hepatocellular carcinoma cells via glycolysis. Here, STAT3 is linked to hepatocellular carcinoma.