Objective: To evaluate the association between long-term exposure to ambient ozone (O3) and sperm quality. Methods: From January 1, 2014, to December 31, 2019, healthy sperm donors were recruited through the Human Sperm Bank of Shandong University Affiliated Reproductive Hospital. A total of 37 977 sperm donation data from 2 971 healthy volunteers were analyzed. The average annual O3 concentration (0.01°× 0.01°) was matched according to household address. A multivariate mixed-effect model was used to analyze the exposure-response relationship between the average O3 exposure concentration and sperm quality in the previous year, with each donor as a random intercept. All results were presented as % changes with 95% confidence intervals (CIs) for all sperm parameters associated with 10 μg/m3 increases in O3. The effects of individual characteristics on the association between O3 and sperm quality were evaluated by stratified analysis. Results: The average O3 concentration in the year before semen collection was (107.09±7.50) μg/m3. Each 10 μg/m3 increase in O3 was associated with declined sperm concentration (-3.12%, 95%CI:-4.55%, -1.67%), total sperm count (-5.21%, 95%CI:-7.28%, -3.09%), total sperm motility (-1.49%, 95%CI:-2.37%, -0.61%), progressive motility (-2.53%, 95%CI:-3.78%, -1.26%), total motile sperm count (-5.82%, 95%CI:-8.17%, -3.41%), and progressively motile sperm count (-6.22%, 95%CI:-8.73%, -3.64%). Men aged 30 and above, obese, and with lower education levels might be more susceptible to the influence of O3 on sperm quality, but the difference was not statistically significant (P>0.05). Conclusion: Long-term exposure to O3 in Shandong Province is associated with a decrease in sperm quality.