The vas deferens are two muscular tubes that transport sperm from the epididymis to the ejaculatory duct. Each vas deferens begins at the testis and ascends behind the testis and epididymis into the spermatic cord. It then passes through the inguinal canal into the abdomen and loops around blood vessels in the pelvis before joining the seminal vesicle duct to form the ejaculatory duct. A vasectomy involves cutting and sealing a short segment of each vas deferens to prevent sperm from being ejaculated and cause male sterilization.