HDAC6-deficient Th17 cells enhance the production of IFN-γ by CD8+ T cells. Deletion of HDAC6 in CD4+ T cells promotes HCC rejection upon PD-1 blockade. Here, HDAC6 is linked to hepatocellular carcinoma.