The '''ductus deferens''' is a direct continuation of the duct of the epididymis from the cauda (tail) of the epididymis. It runs cranially within the '''spermatic cord''' to enter the abdominal cavity via the inguinal canal. It loops within a fold of peritoneum and passes under the ureter to reach the dorsal surface of the bladder. It enters the '''prostate gland''' and opens at the '''seminal hillock''' in the proximal urethra. The '''ampulla''' is a thickening that arises at the termination of the ductus deferens adjacent to the '''ampullary gland'''. In the horse, the '''excretory duct''' of the '''vesicular gland''' joins the ductus deferens close to its termination. The shared duct is known as the '''ejaculatory duct'''.