In conclusion, the above results indicated that RAB6B affected the infiltration of various immune cells in HCC and influenced the prognosis of HCC patients. Here, RAB6B is linked to hepatocellular carcinoma.