Original: The primary physiological mechanism that brings about erection is the autonomic dilation of arteries supplying blood to the penis, which allows more blood to fill the three spongy erectile tissue chambers in the penis, causing it to lengthen and stiffen.
Simplified: Arteries bringing blood to the penis get wider, bringing more blood to the penis.