Liver cancer is the main reason of cancer deaths globally, with an unfavorable prognosis. DNA methylation is one of the epigenetic modifications and maintains the right adjustment of gene expression and steady gene silencing. We aim to explore the novel signatures for prognosis by using DNA methylation-driven genes. To acquire the DNA methylation-driven genes, we perform the difference analysis from the gene expression data and DNA methylation data in TCGA or GEO databases. And we obtain the 31 DNA methylation-driven genes. Subsequently, consensus clustering analysis was utilized to identify the molecular subtypes based on the 31 DNA methylation-driven genes. So, two molecular subtypes were identified to perform those analyses: Survival, immune cell infiltration, and tumor mutation. Results showed that two subtypes were clustered with distinct prognoses, tumor-infiltrating immune cell and tumor mutation burden. Furthermore, the 31 DNA methylation-driven genes were applied to perform the survival analysis to select the 14 survival-related genes. Immediately, a five methylation-driven genes risk model was built, and the patients were divided into high and low-risk groups. The model was established with TCGA as the training cohort and GSE14520 as the validation cohort. According to the risk model, we perform the systematical analysis, including survival, clinical feature, immune cell infiltration, somatic mutation status, underlying mechanisms, and drug sensitivity. Results showed that the high and low groups possessed statistical significance. In addition, the ROC curve was utilized to measure the accuracy of the risk model. AUCs at 1-year, 3-years, and 5-years were respectively 0.770, 0.698, 0.676 in training cohort and 0.717, 0.649, 0.621 in validation cohort. Nomogram was used to provide a better prediction for patients’ survival. Risk score increase the accuracy of survival prediction in HCC patients. In conclusion, this study developed a novel risk model of five methylation-driven genes based on the comprehensive bioinformatics analysis, which accurately predicts the survival of HCC patients and reflects the immune and mutation features of HCC. This study provides novel insights for immunotherapy of HCC patients and promotes medical progress.