AR-dependent transcription promotes O-GlcNAcylation in prostate cancer cells, and, reciprocally, many proteins of the transcription machinery are O-GlcNAcylated. Here, AR is linked to prostate cancer.