The epididymis is a long tube connected to the end of the seminiferous tubules. It functions to store sperm and is the location where sperm mature and gain motility. These mature sperm are then propelled into the vas deferens during ejaculation.