Hepatocellular carcinoma (HCC) is the most frequent primary liver cancer, being the sixth most commonly diagnosed cancer and the fourth leading cause of cancer-related death. As other heterogeneous solid tumours, HCC results from a unique synergistic combination of genetic alterations mixed with epigenetic modifications. In HCC the patterns and frequencies of somatic variations change depending on the nearby chromatin. On the other hand, epigenetic alterations often induce genomic instability prone to mutations. Epigenetics refers to heritable states of gene expression without alteration to the DNA sequence itself and, unlike genetic changes, the epigenetic modifications are reversible and affect gene expression more extensively than genetic changes. Thus, studies of epigenetic regulation and the involved molecular machinery are greatly contributing to the understanding of the mechanisms that underline HCC onset and heterogeneity. Moreover, this knowledge may help to identify biomarkers for HCC diagnosis and prognosis, as well as future new targets for more efficacious therapeutic approaches. In this comprehensive review we will discuss the state-of-the-art knowledge about the epigenetic landscape in hepatocarcinogenesis, including evidence on the diagnostic and prognostic role of non-coding RNAs, modifications occurring at the chromatin level, and their role in the era of precision medicine. Apart from other better-known risk factors that predispose to the development of HCC, characterization of the epigenetic remodelling that occurs during hepatocarcinogenesis could open the way to the identification of personalized biomarkers. It may also enable a more accurate diagnosis and stratification of patients, and the discovery of new targets for more efficient therapeutic approaches.