The shape of the human penis is thought to have evolved as a result of sperm competition. Semen displacement is an adaptation of the shape of the penis to draw foreign semen away from the cervix. This means that in the event of a rival male's sperm residing within the reproductive tract of a female, the human penis is able to displace the rival sperm, replacing it with his own.
