Epigenetic reprogramming and escape from terminal differentiation are poorly understood enabling characteristics of liver cancer. Keratin 19 (KRT19), classically known to form the intermediate filament cytoskeleton, is a marker of stemness and worse prognosis in liver cancer. This study aimed to address the functional roles of KRT19 in liver tumorigenesis and to elucidate the underlying mechanisms. Using multiplexed genome editing of hepatocytes in vivo, we demonstrated that KRT19 promoted liver tumorigenesis in mice. Cell fractionation revealed a previously unrecognized nuclear fraction of KRT19. Tandem affinity purification identified histone deacetylase 1 and REST corepressor 1, components of the corepressor of RE-1 silencing transcription factor (CoREST) complex as KRT19-interacting proteins. KRT19 knockout markedly enhanced histone acetylation levels. Mechanistically, KRT19 promotes CoREST complex formation by enhancing histone deacetylase 1 and REST corepressor 1 interaction, thus increasing the deacetylase activity. ChIP-seq revealed hepatocyte-specific genes, such as hepatocyte nuclear factor 4 alpha ( HNF4A ), as direct targets of KRT19-CoREST. In addition, we identified forkhead box P4 as a direct activator of aberrant KRT19 expression in liver cancer. Furthermore, treatment of primary liver tumors and patient-derived xenografts in mice suggest that KRT19 expression has the potential to predict response to histone deacetylase 1 inhibitors especially in combination with lenvatinib. Our data show that nuclear KRT19 acts as a transcriptional corepressor through promoting the deacetylase activity of the CoREST complex, resulting in dedifferentiation of liver cancer. These findings reveal a previously unrecognized function of KRT19 in directly shaping the epigenetic landscape in cancer.