A varicocele is a swelling of the veins within the scrotum, which is the sac that contains the testicles. Varicoceles are a common condition that can cause pain and fertility problems in men. The veins in the scrotum, which are called the pampiniform plexus, drain blood from the testicles and surrounding tissues back to the heart.