Our findings provide a new potential mechanism by which HPN may play an important role in the susceptibility of rs10954732 A allele carriers to HCC and their prognosis through tumor immune infiltration, thus offering potential insights for future studies on tumor immunotherapy. This evidence concerns the gene HPN and hepatocellular carcinoma.