Erectile dysfunction, or impotence, is the inability to get or maintain an erection during sex. Getting an erection is a complex process that involves the brain, hormones, emotions, nerves, muscles, and blood vessels. If there is a disruption in any of these areas it can lead to erectile dysfunction.