In recent years, the postponement of childbearing has become a critical social issue. Male fertility is negatively associated with age because of testis aging. Spermatogenesis is impaired with age, but the molecular mechanism remains unknown. The dynamic posttranslational modification O-linked N-acetylglucosamine (O-GlcNAc), which is a type of monosaccharide modification, has been shown to drive the process of aging in various systems, but it has not yet been investigated in the testis and male reproductive aging. Thus, this study aims to investigate the alteration of O-GlcNAc with aging and explore the role of O-GlcNAc in spermatogenesis. Here, we demonstrate that the decline in spermatogenesis in aged mice is associated with elevation of O-GlcNAc. O-GlcNAc is specifically localized in differentiating spermatogonia and spermatocytes, indicating its crucial role in meiotic initiation and progression. Mimicking the age-related elevation of O-GlcNAc in young mice by disabling O-GlcNAcase (OGA) using the chemical inhibitor Thiamet-G can recapitulate the impairment of spermatogenesis in aged mice. Mechanistically, the elevation of O-GlcNAc in the testis leads to meiotic pachytene arrest due to defects in synapsis and recombination. Furthermore, decreasing O-GlcNAc in aged testes using an O-GlcNAc transferase (OGT) inhibitor can partially rescue the age-related impairment of spermatogenesis. Our results highlight that O-GlcNAc, as a novel posttranslational modification, participates in meiotic progression and drives the impairment of spermatogenesis during aging.