We developed a gene signature model based on SPP1+ macrophages that effectively predicts prognosis in HCC patients and shows strong performance in both the TCGA and ICGC cohorts. Here, SPP1 is linked to hepatocellular carcinoma.