Our research revealed that exposure to nicosulfuron resulted in compromised sperm quality and alterations in testicular structure. The correlation between nicosulfuron and apoptosis, especially via the NF-κB pathway, provided significant insights into the mechanisms underpinning these detrimental effects. These findings significantly enhance our comprehension of the potential hazards associated with nicosulfuron exposure and its impacts on the reproductive health of animals.