Erection requires three things: sinusoidal relaxation in the corpora cavernosa, arteriole dilatation to increase blood flow, and venous compression to maintain the erection. During sexual stimulation, neurotransmitters are released that cause smooth muscle relaxation in the arteries and compression of the subtunical veins, allowing blood to fill the corpora cavernosa and produce an erection. Both the autonomic nervous system (sympathetic and parasympathetic) and somatic nerves are involved in the neurophysiology of erection through the release of various neurotransmitters in both the peripheral and central nervous systems.