The prognostic value of KLF4 suggested that it plays a crucial role in the TME of HCC. Here, KLF4 is linked to hepatocellular carcinoma.