The internal sphincter of the bladder prevents the semen from going back into the bladder.