Together, these results suggested that ferroptosis-related gene CXCL2 might affect the prognosis of HCC patients by regulating the immune microenvironment. The gene discussed is CXCL2; the disease is hepatocellular carcinoma.