Treatment depends on the underlying cause. In general, exercise, particularly of the aerobic type, is effective for preventing ED during midlife. Exercise as a treatment is under investigation.:6, 18–19 For tobacco smokers, cessation often results in a significant improvement. Oral pharmacotherapy and vacuum erection devices are first-line treatments,:20, 24 followed by injections of drugs into the penis, as well as penile implants.:25–26 Vascular reconstructive surgeries are beneficial in certain groups.
"Erectile dysfunction can be a very serious issue because it's a marker of underlying cardiovascular disease, and it often occurs before heart conditions become apparent. Therefore, men should consider improving their weight and overall nutrition, exercise more, drink less alcohol and have a better night's sleep, as well as address risk factors such as diabetes, high blood pressure and cholesterol.
A CVA can occur anywhere through the brain, midbrain, brainstem and spinal cord leading to varying degrees of SD depending on location. A decline in libido, erection and ejaculation are frequent in men who have had a CVA, with a reported prevalence of ED that varies from 17% to 48% (28,29). Right hemispheric infarcts seem to affect erections more so than left-sided ones. The exact effects of CVA on sexual function are complex and multifactorial, as disability, psychological and emotional status can affect sexual function aside from the location of the CVA.
Traditionally, erectile impotence (the classical definition of impotence) is the failure to achieve penile erection during intercourse. It may have either physical or psychological causes. Alcoholism, endocrine disease, and neurological disorders are typical physical causes. Psychological causes include anxiety over performance, hostility or other negative feelings toward the sexual partner, and stress, anxiety, depression, or other emotional conflicts outside of the relationship. Erectile impotence occasionally occurs with age and, although attributed by the individual to the aging process itself, it is usually secondary to disorders of aging, such as faulty blood circulation or prostate disease. In cases of impotence caused by blood vessel dysfunction, an insufficient supply of blood flows into the penis, or the blood diffuses out into adjacent tissues.
In a prospective, multicenter, single-armed study of ED patients who exhibited a suboptimal response to PDE5 inhibitors, the investigators found that percutaneous implantation of zotarolimus-eluting stents in focal atherosclerotic lesions was both safe and feasible and was associated with clinically meaningful improvement on subjective and objective measures of erectile function. 
The Cancer of the Prostate Strategic Urologic Research Endeavor (CaPSURE) study, designed to determine whether an individual man’s sexual outcomes after most common treatments for early-stage prostate cancer could be accurately predicted on the basis of baseline characteristics and treatment plans, found that 2 years after treatment, 177 (35%) of 511 men who underwent prostatectomy reported the ability to attain functional erections suitable for intercourse. 
Yohimbine: The main component of an African tree bark, yohimbine is probably one of the most problematic of all natural remedies for ED. Some research suggests that yohimbine can improve a type of sexual dysfunction that is linked with a drug used to treat depression. However, studies have linked yohimbine to a number of side effects, which can include anxiety, increased blood pressure, and a fast, irregular heartbeat. Like all natural remedies, yohimbine should only be used after advice and under supervision from a doctor.