To identify the prognostic biomarkers associated with immune genes of hepatocellular carcinoma, we first identified the immune genes associated DEGs and then constructed an immune-related gene-based prognostic index (IRGPI) composed of ten genes (HSPA4, PSME3, PSMD14, FABP6, ISG20L2, TRAF3, NDRG1, NRAS, CSPG5, IL17D) by Cox regression model and finally verified its correlation with OS. The gene discussed is NDRG1; the disease is hepatocellular carcinoma.