CD8+CXCR5+T cells infiltrating hepatocellular carcinomas are activated and predictive of a better prognosis. Here, CXCR5 is linked to hepatocellular carcinoma.