Erectile dysfunction occurs when someone who has a penis can't have or maintain an erection. The condition affects around many men in the US, and is more common in people who are older, have health conditions like diabetes or high blood pressure, have had an injury to the spinal cord, penis, or pelvis, take medication like antidepressants or blood pressure medications.