Melanocortin receptor agonists were found to induce erections serendipitously. A study investigating the dermatologic use of Melanotan-II (MT-II) was found to generate erections unexpectedly leading to the development of MTII derivatives for ED treatment (120). MT-II was initially used to induce pigment changes in the skin for artificial tanning but has been suspected to induce melanoma, however (121).
In their extensive review, Bassil and coworkers summarise the benefits and risks, with benefits such as improvement of sexual function, bone density, muscle strength, cognition and overall improvement in quality of life. Among the risks that have been suggested include erythrocytosis, liver toxicity, worsening of sleep apnoea and cardiac function, possibly increasing symptoms of benign prostatic hyperplasia (BPH). They also note that although a possibility of stimulation of prostate cancer has been hypothesised, no scientific or clinical evidence exists to this possible risk.38
A variety of lifestyle choices can affect the ability to achieve and maintain an erection, so preventing ED is possible in some cases. Men are encouraged to manage chronic health problems with their doctors and to exercise regularly. They also should avoid smoking and excess alcohol and get help for anxiety or depression, according to the Mayo Clinic.
Associated morbidity may include various other male sexual dysfunctions, such as premature (early) ejaculation and male hypoactive sexual desire disorder. The NHSLS found that 28.5% of men aged 18-59 years reported premature ejaculation, and 15.8% lacked sexual interest during the past year. An additional 17% reported anxiety about sexual performance, and 8.1% had a lack of pleasure in sex. 
One study examined the role of testosterone supplementation in hypogonadal men with ED. These men were considered nonresponders to sildenafil, and their erections were monitored by assessing nocturnal penile tumescence (NPT). After these men were given testosterone transdermally for 6 months, the number of NPTs increased, as did the maximum rigidity with sildenafil.  This study suggests that a certain level of testosterone may be necessary for PDE5 inhibitors to function properly.
The art of acupuncture has become the new treatment for everything from back pain, depression, and even ED. Impotence could be more of a state of mind, and acupuncture may help. Through this alternative therapy, fine needles are placed in various parts of the body to relieve pain or stress. Although there are many mixed studies for acupuncture and ED, many tend to confirm positive results. A 1999 study found acupuncture improved the quality of erection and even restored sexual activity in 39 percent of participants.
Recognized risk factors for ED include cardiovascular disease (CVD) (hypertension, atherosclerosis, and hyperlipidemia), diabetes, depression, alcohol use, smoking, pelvic/perineal surgery or trauma, neurologic disease, obesity, pelvic radiation, and Peyronie’s disease. One study suggested that the relationship between arterial disease and ED is very strong, with 49% (147 of 300) of patients with coronary artery disease noted on cardiac catheterization reporting significant erectile dysfunction.6 Endothelial dysfunction has been indicated as the pathophysiologic mechanism responsible for both CVD and ED.7 The Boston Area Community Health survey demonstrated a dose-response between smoking and incidence of erectile dysfunction.8 Animal studies have demonstrated both smooth-muscle disruption and decreased production of neural nitric oxide synthase in cigarette-exposed animals.9
This isn’t all that surprising. When you feel blue and low on energy, it can be extremely difficult to perform at your sexual peak. Furthermore, depression is linked to changes in your brain chemistry and nervous system. Some of these areas also affect your sex drive and ability to have an erection. This means that depression can change the way your brain works, making ED more likely.
Somatomotor penile innervation originates in Onuf’s nucleus in the S2-4 spinal segments. These nerves travel to the ischiocavernosus and bulbocavernosus muscles when activated lead to contraction necessary for the rigid-erection phase. Several animal studies show that stimulation of the somatomotor pathways may also be under sympathetic control, and adrenergic stimulation may lead to contraction of these muscles during ejaculation (13,14). Somatomotor spinal reflexes may also be initiated by genital stimulation. For instance, the well-known bulbocavernosus reflex is evidence this reflex exists; however the clinical significance of its absence in the neurological assessment of ED has not been substantiated (15).
Clinical studies have suggested that these devices are effective and acceptable to a large number of patients with ED of varying causes, including psychogenic erectile failure. These devices are safe and can restore a man’s ability to achieve penetrative intercourse, with one study suggesting nearly 95% success with adequate instruction and support.30 However, satisfaction with this treatment modality typically wanes with time, as patients report dissatisfaction with how cumbersome or unnatural the devices are to use, hinging or buckling of the erection with thrusting, and dissatisfaction with the fact that the erection is ischemic and therefore cold, which can be off-putting to the partner.
Since the advent of PDE5i, many other selective and non-selective peripheral acting compounds have been developed or are in development. Avanafil has shown promising results in treating ED in post-prostatectomy patients with suspected cavernous nerve injury (111). Other PDE5i marked in Asia such as udenafil, and mirodenafil also effective at treating ED may minimize side effects due to shorter half-lives (112-114). Soluable guanylate-cyclase inhibitors and potassium channel activators are compounds that have induced erections in animal models but remain experimental requiring further investigation (115-117).
Patients receiving penile prostheses should be instructed in the operation of the prosthesis before surgery and again in the postoperative period. The prosthesis usually is not activated until approximately 6 weeks after surgery, so as to allow the edema and pain to subside. The prosthesis is checked in the office before the patient begins to use it.
Cosgrove et al reported a higher rate of sexual dysfunction in veterans with posttraumatic stress disorder (PTSD) than in veterans who did not develop this problem.  The domains on the International Index of Erectile Function (IIEF) questionnaire that demonstrated the most change included overall sexual satisfaction and erectile function. [43, 44] Men with PTSD should be evaluated and treated if they have sexual dysfunction.
Psychotherapy, marital counseling, or sex therapy may be helpful in treating cases of impotence that have psychological or emotional causes. A range of other treatments exists for cases of impotence that arise from purely physiological causes. These treatments include vacuum devices, penile injections, and penile implants. These mechanical or physically invasive approaches have largely been superseded, however, by the drug sildenafil citrate (trade name Viagra), which is taken in pill form. This drug works by enhancing the effects of nitric oxide, a chemical that, upon sexual stimulation, is normally released to widen the blood vessels supplying the penis. The increased flow of blood through those vessels into certain tissues in the penis causes an erection. See also sexual dysfunction.
Prior to the introduction of PDE5i in 1998, intracavernosal vasoactive medications and penile implant surgery were the mainstays of treatment. Penile implant surgery involves placement of inflatable or malleable rods within the corpora cavernosa to provide rigidity for intercourse. Choice of which implant to place usually depends upon manual dexterity and function of the patient, patient anatomy, physician preference and surgical approach.
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.