It is known that many diabetic patients experience testicular atrophy. This study sought to investigate the effect of 4-hexylresorcinol (4HR) on testicular function in rats with streptozotocin (STZ)-induced diabetes, focusing on testicular weight, sperm motility, histological alterations, and serum testosterone levels to understand the efficacy of 4HR on testes. Our findings reveal that 4HR treatment significantly improves testicular health in diabetic rats. Notably, the STZ group exhibited a testicular weight of 1.22 ± 0.48 g, whereas the STZ/4HR group showed a significantly enhanced weight of 1.91 ± 0.26 g (p < 0.001), aligning closely with the control group’s weight of 1.99 ± 0.17 g and the 4HR group’s weight of 2.05 ± 0.24 g, indicating no significant difference between control and 4HR groups (p > 0.05). Furthermore, the STZ/4HR group demonstrated significantly improved sperm motility compared to the STZ group, with apoptotic indicators notably reduced in the STZ/4HR group relative to the STZ group (p < 0.05). These results underscore the therapeutic potential of 4HR for maintaining testicular function under diabetic conditions.