Enhanced O-GlcNAc modification induced by the RAS/MAPK/CDK1 pathway is required for SOX2 protein expression and generation of cancer stem cells. Here, CDK1 is linked to cancer.