Liver cancer refers to malignant tumors that form in the liver and is usually divided into several types, the most common of which is hepatocellular carcinoma (HCC), which originates in liver cells. Other rare types of liver cancer include intrahepatic cholangiocarcinoma (iCCA). m6A modification is a chemical modification of RNA that usually manifests as the addition of a methyl group to adenine in the RNA molecule to form N6-methyladenosine. This modification exerts a critical role in various biological processes by regulating the metabolism of RNA, affecting gene expression. Recent studies have shown that m6A modification is closely related to the occurrence and development of liver cancer, and m6A regulators can further participate in the pathogenesis of liver cancer by regulating the expression of key genes and the function of specific cells. In this review, we provided an overview of the latest advances in m6A modification in liver cancer research and explored in detail the specific functions of different m6A regulators. Meanwhile, we deeply analyzed the mechanisms and roles of m6A modification in liver cancer, aiming to provide novel insights and references for the search for potential therapeutic targets. Finally, we discussed the prospects and challenges of targeting m6A regulators in liver cancer therapy.