Post-translational modifications (PTMs) influence protein functionality by modulating protein stability, localization, and interactions with other molecules, thereby controlling various cellular processes. Common PTMs include phosphorylation, acetylation, ubiquitination, glycosylation, SUMOylation, methylation, sulfation, and nitrosylation. Among these modifications, O-GlcNAcylation has been shown to play a critical role in cancer development and progression, especially in hepatocellular carcinoma (HCC). This review outlines the role of O-GlcNAcylation in the development and progression of HCC. Moreover, we delve into the underlying mechanisms of O-GlcNAcylation in HCC and highlight compounds that target O-GlcNAc transferase (OGT) and O-GlcNAcase (OGA) to improve treatment outcomes. Understanding the role of O-GlcNAcylation in HCC will offer insights into potential therapeutic strategies targeting OGT and OGA, which could improve treatment for patients with HCC.