Research has even found possible links to frequent ejaculation and a lower risk of prostate cancer. In one study of 32,000 men published in 2016 in the journal European Urology, for example, men who ejaculated at least 21 times per month while in their 20s were less likely to be diagnosed with prostate cancer than those who ejaculated four to seven times per month. And men who ejaculated more often in their 40s were 22 percent less likely to get a prostate cancer diagnosis.
The bad news: Men with diabetes are three times more likely to report having problems with sex than non-diabetic men. The most common sexual problem is Erectile Dysfunction, or ED, sometimes called impotence. Even worse, because ED is such a private issue, many men feel embarrassed to discuss the problem with their doctor, or even their partner, so the problem is never addressed.
In some cases, however, these drugs may be unsuitable for patients with heart disease. If you are considering one of these drugs and you have heart disease, as many diabetics do, be sure to tell your doctor. In rare cases, the pills may create “priapism,” a prolonged and painful erection lasting six hours or more (although reversible with prompt medical attention).
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.
The availability of phosphodiesterase-5 (PDE5) inhibitors—sildenafil, vardenafil, tadalafil, and avanafil—has fundamentally altered the medical management of ED. In addition, direct-to-consumer marketing of these agents over the last 15 years has increased the general public’s awareness of ED as a medical condition with underlying causes and effective treatments.
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.
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.
The PDE5 inhibitors sildenafil (Viagra), vardenafil (Levitra) and tadalafil (Cialis) are prescription drugs which are taken orally.:20–21 Additionally, a cream combining alprostadil with the permeation enhancer DDAIP has been approved in Canada as a first line treatment for erectile dysfunction. Penile injections, on the other hand, can involve one of the following medications: papaverine, phentolamine, and prostaglandin E1, also known as alprostadil.:25
An occasional problem achieving an erection is nothing to worry about. But failure to do so more than 50% of the time at any age may indicate a condition that needs treatment. About 40% of men in their 40s report at least occasional problems getting and maintaining erections. So do more than half (52%) of men aged 40 to 70, and about 70% of men in their 70s.
Although not proven, it is likely that erectile dysfunction can be prevented by good general health, paying particular attention to body weight, exercise, and cigarette smoking. For example, heart disease and diabetes are problems that can cause erectile dysfunction, and both are preventable through lifestyle changes such as sensible eating and regular exercise. Furthermore, early diagnosis and treatment of associated conditions like diabetes, hypertension and high cholesterol may prevent or delay erectile dysfunction, or stop the erectile dysfunction from getting more serious.
In order to establish whether normal erections are occurring overnight (nocturnal erections), the doctor may organise nocturnal penile tumescence (NPT) testing. This involves wearing a monitor overnight in your own home. The data from this monitor is then assessed to analyse how often erections occurred, how long they lasted, and how rigid and large the penis was during the erections. If NPT testing is normal, the cause of erectile dysfunction is usually psychological. If not, further testing of the blood flow in the genital area may be required to see if there is blockage or leakage. The doctor may also organise a blood test of levels of hormones such as testosterone, prolactin and thyroid stimulating hormone to see if these are contributing to the erectile dysfunction.
Communicate with your partner. Do you feel comfortable and accepted when it comes to your sexual performance? If you're worried about meeting your partner's too-high expectations or living up to some kind of standard, it will be harder to maintain an erection - it's called performance anxiety. If you think your partner's judgment might be hindering your ability to have satisfying sex, you need to communicate your needs and find ways to make your sexual environment more inviting.
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. 
Implantation of penile prosthesis remains an important option for men with ED if medical treatment fails or is inappropriate. Prostheses are available as a saline-filled silicone device or a malleable device. The benefit of the former is a more natural appearance in the deflated state, closely approximating the appearance of a flaccid penis. The trade-off is a higher mechanical failure rate and higher cost. Satisfaction rates for patients who underwent penile prosthesis surgery have been reported to be near 90%.36 However, in the majority of patients who receive this treatment, less invasive alternatives have failed and therefore satisfaction with this treatment would be expected to be higher in this subset of patients. Risks of these devices include surgical and anesthetic risk, device infection, and device malfunction. Mechanical failure rates depend on the specific device being investigated. Overall, the percentage of devices that are free from mechanical failure at 5 years ranges from 84% to 94%.19 Infection rates in the era of coated devices and improved techniques are reported to be less than 1%.37
Meditation is known to lower the heart rate and regulate blood flow around the body, which bodes well for ED sufferers, as what's an erection if not a big gathering of blood? Meditation has also been shown to reduce anxiety and change negative thought associations. Sara Lazar, a neuroscientist at Harvard, was one of the first people to scan meditators' brains and discovered that the amygdala, the part of the brain where anxiety calls home, was smaller for meditators than the control group.
Penile injection therapy, intracavernous injection, involves the injection of a vasodilator (a chemical that relaxes arteries to increase blood flow) into the penis. Penile injected therapy is recognized as the most effective nonsurgical treatment for erectile dysfunction. However, due to the invasive nature, it is often used in men who have failed or have contraindications to other treatments such as oral therapies.
Palmer MR, Holt SK, Sarma AV, Dunn RL, Hotaling JM, Cleary PA, Braffett BH, Martin C, Herman WH, Jacobson AM, Wessells H; Diabetes Control and Complications Trial and Epidemiology of Diabetes Interventions and Complications Research Group. Longitudinal Patterns of Occurrence and Remission of Erectile Dysfunction in Men With Type 1 Diabetes. J Sex Med. 2017 Oct;14(10):1187-1194. Doi: 10.1016/j.jsxm.2017.07.012. Epub 2017 Aug 26.
Impotence, also called erectile dysfunction, in general, the inability of a man to achieve or maintain penile erection and hence the inability to participate fully in sexual intercourse. In its broadest sense the term impotence refers to the inability to become sexually aroused; in this sense it can apply to women as well as to men. In common practice, however, the term has traditionally been used to describe only male sexual dysfunctions. Professional sex therapists, while they identify two distinct dysfunctions as forms of impotence, prefer not to use the term impotence per se. Thus, because of its pejorative connotation in lay usage and because of confusion about its definition, the word impotence has been eliminated from the technical vocabulary in favour of the term “erectile dysfunction.”
ED usually has something physical behind it, particularly in older men. But psychological factors can be a factor in many cases of ED. Experts say stress, depression, poor self-esteem, and performance anxiety can short-circuit the process that leads to an erection. These factors can also make the problem worse in men whose ED stems from something physical.