Using an in vivo rat model of maternal hyperglycemia, we show similarly elevated O-GlcNAc levels and epigenetic dysregulations in the developing embryo brains because of hyperglycemia, whereas pharmacological inhibition of O-GlcNAc transferase (OGT) restored these molecular changes. Here, OGT is linked to Hyperglycemia.