In conclusion, CXCL5, CXCL8, IL18RAP, and TREM2 were associated with HCC prognosis and were important for immune cell invasion into the TME. This evidence concerns the gene IL18RAP and hepatocellular carcinoma.