Erectile dysfunction (ED) is caused by a range of physiological and psychological conditions like stress, anxiety, or depression. The mechanical problem is commonly the same: insufficient blood flow or nervous stimulation, which is required to enable enough blood into the penis to achieve a full and sustained erection. ED can be the first sign of heart or other health conditions, including cardiovascular disease and diabetes.