The ductus deferens is a long muscular duct that transports spermatozoa from the tail of the epididymis in the scrotum to the ejaculatory duct in the pelvic cavity (Fig. 5.47A). It ascends in the scrotum as a component of the spermatic cord and passes through the inguinal canal in the anterior abdominal wall.