These findings suggested that the KLF4 expression network influenced the TIME in HCC. Here, KLF4 is linked to hepatocellular carcinoma.