The ductus deferens transports spermatozoa from the tail of the epididymis in the scrotum to the ejaculatory duct in the pelvic cavity. Because it has a thick smooth muscle wall, it can be easily palpated in the spermatic cord between the testes and the superficial inguinal ring. Also, because it can be accessed through skin and superficial fascia, it is amenable to surgical dissection and surgical division. When this is carried out bilaterally (vasectomy), the patient is rendered sterile—this is a useful method for male contraception.