HBC infection increased YTHDF2 O-GlcNAcylation at Ser263 in HCC, which was induced by OGT. Here, YTHDF2 is linked to hepatocellular carcinoma.