BackgroundOnly a minority of hepatocellular carcinoma (HCC) patients can benefit from systemic regimens. Macrophages, which abundantly infiltrate in HCC, could mediate tumour microenvironment remodelling and immune escape, proving to be powerful weapons in combating HCC. Thus, a deeper understanding of macrophages is necessary for improving existing antitumour treatments.MethodsWith a series of bioinformatic approaches, we comprehensively explored the role of macrophage-related genes in human HCCs from multiple single-cell and bulk RNA sequencing datasets. Unsupervised clustering was performed to cluster the macrophage marker genes (MMGs). GSVA and functional enrichment analysis were used to elucidate the functional differences among the MMG-associated clusters. Subsequently, a component analysis algorithm was used to construct a Macrosig score, and the prognosis, biological characteristics, mutation profile, TME cell infiltration status and drug response of patients with different Macrosig scores were further analysed.ResultsWe identified 13 MMGs in 574 HCC samples, based on which three MMG-associated clusters were defined. Overall survival time, clinicopathological features and immune infiltration scores differed among the different clusters. On this basis, 12 hub genes were identified among these clusters; subsequently, a scoring system was constructed to determine the Macrosig score. Importantly, patients with low-Macrosig scores, characterized by increased immune infiltration, increased mutation frequency and increased immune checkpoint expression, including CTLA-4, LAG3, PDCD1 and TIGIT, exhibited enhanced efficacy of immunotherapy when validated in an external database. Moreover, a low-Macrosig score indicates increased sensitivity to AZD.2281, A.443654, ABT.263, ABT.888, AG.014699 and ATRA, while a high Macrosig score indicates increased sensitivity to AZD6482, AKT inhibitor VIII, AS601245, AZ628, AZD.0530 and AZD6244.ConclusionsA novel scoring system was constructed to guide more effective prognostic evaluation and tailoring therapeutic regimens for HCC patients.