Acetoacetate is identified as the key secreted molecule from HCC cells in B3GALNT2-mediated macrophage recruitment. Here, B3GALNT2 is linked to hepatocellular carcinoma.