A high fraction of SPP1+ macrophages is harmful to HCC patients’ survival. Here, SPP1 is linked to hepatocellular carcinoma.