YY1 is a zinc finger DNA-binding transcription factor that influences expression of a wide variety of cellular and viral genes. YY1 is essential for the development of mammalian embryos. It regulates the expression of genes with important functions in DNA replication, protein synthesis, and cellular response to external stimuli during cell growth and differentiation. How YY1 accomplishes such a variety of functions is unknown. Here, we show that a subset of the nuclear YY1 appears to be O-GlcNAcylated regardless of the differentiation status of the cells. We found that glucose strongly stimulates O-linked N-acetylglucosaminylation (O-GlcNAcylation) on YY1. Glycosylated YY1 no longer binds the retinoblastoma protein (Rb). Upon dissociation from Rb, the glycosylated YY1 is free to bind DNA. The ability of the O-glycosylation on YY1 to disrupt the complex with Rb leads us to propose that O-glycosylation might have a profound effect on cell cycle transitions that regulate the YY1-Rb heterodimerization and promote the activity of YY1. Our observations provide strong evidence that YY1-regulated transcription is very likely connected to the pathway of glucose metabolism that culminates in the O-GlcNAcylation on YY1, changing its function in transcription.