In summary, our study reveals the pivotal role of SPP1+ macrophages in shaping the immune microenvironment of HCC and introduces a novel prognostic model based on their associated gene signature. This evidence concerns the gene SPP1 and hepatocellular carcinoma.