Prostate cancer
Prostate cancer is associated with urinary dysfunction as the prostate gland surrounds the prostatic urethra. Changes within the gland directly affect urinary function. Because the vas deferens deposits seminal fluid into the prostatic urethra, and secretions from the prostate are included in semen content, prostate cancer may also cause problems with sexual function and performance, such as difficulty achieving erection or painful ejaculation.