In conclusion, we established a prognostic model for HCC patients based on six TP53 mutation-related genes which can accurately evaluate patients' prognoses and identified six immune cells with the same expression pattern in the TCGA and ICGC datasets, which may serve as biomarkers in HCC. Here, TP53 is linked to hepatocellular carcinoma.