We found that patients with low KLF2 expression levels were more responsive to ICIs therapy and achieved a better prognosis and survival, indicating that advanced HCC patients with lower KLF2 expression levels are more suitable for ICIs therapy. Here, KLF2 is linked to hepatocellular carcinoma.