Male infertility is one of the most common complications of diabetes mellitus (DM). Dapagliflozin is widely used to manage the type II DM. This study aimed to assess the dapagliflozin’s effects on the spermatogenesis by administering either dapagliflozin (Dapa) or vehicle (db) to male db/db mice, and using littermate male db/m mice as the control (Con). We further performed the integrative analyses of the cecal shotgun metagenomics, cecal/plasmatic/testicular metabolomics, and testicular proteomics. We found that dapagliflozin treatment significantly alleviated the diabetes-induced spermatogenic dysfunction by improving sperm quality, including the sperm concentration and sperm motility. The overall microbial composition was reshaped in Dapa mice and 13 species (such as Lachnospiraceae bacterium 3–1) were regarded as potential beneficial bacteria. Metabolites exhibited modified profiles, in which adenosine, cAMP, and 2′-deoxyinosine being notably altered in the cecum, plasma, and testis, respectively. Testicular protein expression patterns were similar between the Dapa and Con mice. In vivo results indicated that when compared with db group, dapagliflozin treatment alleviated apoptosis and oxidative stress in testis tissues by down-regulating 2′-deoxyinosine. This was further validated by in vitro experiments using GC-2 cells. Our findings support the potential use of dapagliflozin to prevent the diabetes-induced impaired sperm quality and to treat diabetic male infertility.