These data demonstrated that STAT3 inhibition in HCC can improve the immune microenvironment, promoting the antitumour immune responses. Here, STAT3 is linked to hepatocellular carcinoma.