Sexual stimulation and excitement cause the brain, the nerves, the heart, the blood vessels and hormones to work together to produce a rapid increase in the amount of blood flowing to the penis.
The blood becomes trapped and held in the two spongy chambers in the shaft of the penis.
As the chambers rapidly fill with blood, they expand, and the penis becomes firm and elongated. The result is an erection