Vertebrate spermatogonial stem cells maintain sperm production over the lifetime of an animal but fertility declines with age. While morphological studies have informed our understanding of typical spermatogenesis, the molecular and cellular mechanisms underlying the maintenance and decline of spermatogenesis are not yet understood. We used single-cell RNA sequencing to generate a developmental atlas of the aging zebrafish testis. All testes contained spermatogonia, but we observed a progressive decline in spermatogenesis that correlates with age. Testes from some older males only contained spermatogonia and a reduced population of spermatocytes. Spermatogonia in older males are transcriptionally distinct from spermatogonia in testes capable of robust spermatogenesis. Immune cells including macrophages and lymphocytes drastically increase in abundance in testes that cannot complete spermatogenesis. Our developmental atlas reveals the cellular changes as the testis ages and defines a molecular roadmap for the regulation of spermatogenesis.