Therefore, we aimed to elucidate the value of RAB42 in the predicting prognosis of HCC, and its relationship with immune cells infiltration. Here, RAB42 is linked to hepatocellular carcinoma.