In summary, there is an inverse correlation between CDK4 and immune infiltration in HCC, and CDK4 is a potent predictive biomarker in HCC. Here, CDK4 is linked to hepatocellular carcinoma.