In the male reproductive system sperm are produced in the seminiferous tubules of the testes, two organs contained in the scrotum, an external sac in the groin. The testes also produce the male hormone testosterone and a portion of the seminal fluid, the liquid in which sperm are carried. The external location of the scrotum ensures the relatively low temperature that is necessary for the normal development of sperm. After formation, the sperm pass from the testes into the tubular epididymis, and from there into another passage, the vas deferens. The seminal vesicle, which produces nutrient seminal fluid, and the prostate gland, which produces alkaline prostatic fluid, are both connected to the ejaculatory duct leading into the urethra.
The first stage of the male sexual act, erection, results from nerve impulses from the autonomic nervous system that dilate the arteries of the penis, thus allowing arterial blood to flow into erectile tissues of the organ. During intercourse, contractions in the ducts of the testes, epididymis, and ductus deferens cause expulsion of sperm into the urethra and their mixture with the seminal and prostatic fluids. These substances, together with mucus secreted by accessory glands known as Cowper's glands, form the semen, which is discharged from the penile urethra during ejaculation.