Communication is key: don’t try to hide your erectile dysfunction from your partner, or to avoid discussing it out of embarrassment or shame. Sometimes just admitting that you are concerned can reduce the stress and anxiety you’re feeling. Remember, your partner may be just as confused and upset by this as you are, so try initiating a frank and open discussion on the issue.
When stimulated by the nerves, the spongy tissue arranges itself in such a way that more blood can be stored in the penis. The veins running through the outer sheath of the penis then compress which stops the blood from leaving the penis. As the blood is stopped from flowing out, the penis fills with blood and stretches within the outer casing, giving an erection.
Exercise and lifestyle modifications may improve erectile function. Weight loss may help by decreasing inflammation, increasing testosterone, and improving self-esteem. Patients should be educated to increase activity, reduce weight, and stop smoking, as these efforts can improve or restore erectile function in men without comorbidities. Precise glycemic control in diabetic patients and pharmacologic treatment of hypertension may be important in preventing or reducing 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.
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.
Side effects include lightheadedness, fainting, priapism, urethral bleeding (intraurethral), dyspareunia in the partner (intraurethral), hematoma (intracavernosal) or penile curvature secondary to scar (intracavernosal). Efficacy of intraurethral alprostadil has been demonstrated to be around 50% ("able to have intercourse") in randomized controlled trials.31,32 For intracorporeal injection, typically alprostadil is tried alone, or compounded with papaverine (nonspecific phosphodiesterase inhibitor that increases intracellular cyclic adenosine monophosphate and cGMP) and/or phentolamine (competitive, non-selective alpha1- and alpha2-adrenoreceptor blocker). Pinsky et al33 reported an extensive review of the benefits and drawbacks of the combinations of these drugs.
The great majority of ED cases in diabetic men have a physical cause, such as neuropathy or circulatory problems. In some cases, however, the cause of ED is psychological, including depression, guilt, or anxiety. With a thorough exam, the doctor should be able to determine whether the ED is psychological or physical in nature. If the cause is psychological, your doctor may refer you to a psychiatrist, psychologist, sex therapist, or marital counselor. Do not view such a diagnosis as an insult. Most psychologically-based ED is easily and successfully treated.
The main surgical treatment of ED involves insertion of a penile implant (also called penile prostheses). Because penile vascular surgery is not recommended for aging males who have failed oral PDE5 inhibitors, ICI or IU therapies, implants are the next step for these patients. Although placement of a penile implant is a surgery which carries risks, they have the highest rates of success and satisfaction among ED treatment options.