The penis has three cylindrical structures that create erections. During sexual stimulation, neurotransmitters are released that cause smooth muscle relaxation and dilation of arteries. This increases blood flow into the penis, compressing veins to trap blood and cause rigidity. Erection requires relaxation of sinusoidal spaces in the corpora cavernosa, dilation of arteries, and compression of veins. Both the autonomic and somatic nervous systems innervate the penis and play roles in sensations and rigid erections through pelvic plexus pathways and spinal cord regions. Various neurotransmitters and hormones systemically and locally influence flaccidity and erection.