In conclusion, this study revealed the upregulation of B4GALNT1 in HCC tumor cells, which could be used as a valuable prognostic predictor, and revealed the functions of B4GALNT1 in microenvironment remodeling in HCC via the HES4-SPP1-TAM/Th2 axis. The gene discussed is HES4; the disease is hepatocellular carcinoma.