Here, the authors show that macrophage-derived itaconate induces epigenetic-mediated CD8+ T cell exhaustion, promoting hepatocellular carcinoma development. Here, CD8A is linked to hepatocellular carcinoma.