We discovered a biomarker that can be used for the early diagnosis, prognosis and PD1 immunotherapy efficacy prediction of HCC for the first time and developed a diagnostic model, prognostic model and prediction model of PD1 treatment sensitivity and treatment outcome for HCC patients accordingly. This evidence concerns the gene PDCD1 and hepatocellular carcinoma.