In conclusion, CXCL5, CXCL8, IL18RAP, and TREM2 were associated with HCC prognosis and were important for immune cell invasion into the TME. The gene discussed is CXCL8; the disease is hepatocellular carcinoma.