Since sexual arousal is a complex process involving hormones, emotions, nerves, muscles, blood vessels and the brain, a malfunction in any of these can lead to ED. Stress, exhaustion and psychological issues can also contribute, and anxiety over maintaining an erection can actually make it harder to attain. In short, any condition that inhibits blood flow to the penis can lead to ED.
Español: superar la disfunción eréctil, Português: Superar a Disfunção Erétil, Italiano: Superare la Disfunzione Erettile, 中文: 克服勃起功能障碍, Français: venir à bout des troubles de l'érection, Русский: преодолеть эректильную дисфункцию, Deutsch: Erektionsstörungen behandeln, Bahasa Indonesia: Mengatasi Disfungsi Ereksi, Nederlands: Een erectiestoornis behandelen, العربية: علاج ضعف الانتصاب, 日本語: 勃起不全（ED）を治す
Of the drugs used for depression, tricyclic antidepressants may be associated with erectile problems and other drugs may be substituted to prevent this complication. Currently available substitutes include bupropion, nefazodone, and trazodone. The selective serotonin reuptake inhibitors (eg, fluoxetine, sertraline, paroxetine, citalopram) can also cause difficulties with ED, but they might also have other significant sexual side effects, including decreased libido and anorgasmia.
Exercise regularly. Make it a priority to get outside or go to the gym to walk, run, swim, bike, or do strength training at least 4 times a week. According to a study conducted by Harvard, walking 30 minutes a day caused a 41% drop in risk for ED. Getting regular exercise aids circulation, getting your blood pumping through your entire body. When it's time to sustain an erection, better circulation is key.
Taking one of these tablets will not automatically produce an erection. Sexual stimulation is needed first to cause the release of nitric oxide from your penile nerves. These medications amplify that signal, allowing some men to function normally. Oral erectile dysfunction medications are not aphrodisiacs, will not cause excitement and are not needed in men who get normal erections.
Vacuum devices for ED, also called pumps, offer an alternative to medication. The penis is placed inside a cylinder. A pump draws air out of the cylinder, creating a partial vacuum around the penis. This causes it to fill with blood, leading to an erection. An elastic band worn around the base of the penis maintains the erection during intercourse.
In comparison, 37% of men who had received external radiotherapy as their primary therapy reported the ability to attain functional erections suitable for intercourse, along with 43% of men who had received brachytherapy as primary treatment. Pretreatment sexual health-related quality of life score, age, serum prostate-specific antigen (PSA) level, race or ethnicity, body mass index, and intended treatment details were associated with functional erections 2 years after treatment. 
Viagra and Cialis, despite their aggressive marketing, are not the ideal treatment for men with psychological impotence. Rather, they are designed to treat physical erectile dysfunction that is rooted in blood flow malfunction. For the man with psychological ED, taking a pill may not work properly because they’re not tackling the psychological causes of the problem.
Several treatments were promoted in the pre-PGE1, pre-prostaglandin era, including yohimbine, trazodone, testosterone, and various herbal remedies. None of these is currently recommended under the updated American Urological Association Guidelines for the Treatment of Erectile Dysfunction.15 Testosterone supplementation is only recommended for men with low testosterone levels.
There are so many potential reasons a man might develop erectile dysfunction (ED), it's nearly impossible to generalize the best ways to treat it. What works for one man may not work for another simply because they are having problems for different reasons. That said, it may encouraging to hear that there are a variety of options that may be considered, from psychological counseling to lifestyle changes, medications to treatments and devices.
If it is determined that ED is a problem, the patient evaluation should include a detailed sexual and medical history and a physical exam. In particular, it is important to evaluate the ED within the context of ejaculatory problems. There is a strong interplay between premature ejaculation (PE) and ED, with about a third of ED patients reporting PE. The relationship between the PE and ED is bidirectional and successful treatment of one often requires treatment of the other.14
In a prospective study from the Prostate Cancer Prevention Trial database, Thompson et al reported that men presenting with ED had a significantly higher chance of developing a cardiovascular event over a 7-year follow-up period.  The hazard ratio was 1.45, which is in the range of risk associated with current smoking or a family history of MI.
A vacuum erection device is a plastic tube that slips over the penis, making a seal with the skin of the body. A pump at the other end of the tube makes a low-pressure vacuum around the erectile tissue, which results in an erection. An elastic ring is then slipped onto the base of the penis. This holds the blood in the penis (and keeps it hard) for up to 30 minutes. With proper training, 75 out of 100 men can get a working erection using a vacuum erection device.