This study reveals the crucial function of spermine in establishing immune privilege by increasing the expression and N-glycosylation of PD-L1, providing a potential strategy for the treatment of hepatocellular carcinoma. This evidence concerns the gene CD274 and hepatocellular carcinoma.