Sildenafil (Viagra) was the first oral phosphodiesterase type 5 (PDE5) inhibitor approved by the FDA in the United States for the treatment of erectile dysfunction (it is not approved for women). Sildenafil inhibits PDE5, which is an enzyme that destroys cGMP. By inhibiting the destruction of cGMP by PDE5, sildenafil allows cGMP to accumulate. The cGMP in turn prolongs relaxation of the smooth muscle of the corpora cavernosa. Relaxation of the corpora cavernosa smooth muscle allows blood to flow into the penis resulting in increased engorgement of the penis. In short, sildenafil increases blood flow into the penis and decreases blood flow out of the penis.
L-arginine, an amino acid that is naturally present in the body and helps make nitric oxide, supports a successful erection. Nitric oxide is responsible for making the blood vessels relax, which helps sustain an erection for men. A 1999 study, observed the effects of six weeks of high-dose (5 grams/day) orally administered nitric oxide (NO) donor L-arginine on men with organic ED. Thirty-one percent of those who took 5 grams/day of L-arginine experienced significant improvements in sexual function. Burns told Medical Daily, “l-arginine and deer antler velvet” have been the most popular go-to natural treatments for men.
It is important to understand that ED is frequently, if not usually, directly related to endothelial dysfunction, and that the release of NO by the vasculature of the penile arteries is directly related to the function of intact, healthy endothelium. In the face of endothelial dysfunction, the process of erection fails to occur in a normal fashion.16
There are hundreds of medications that have the side effect of ED and/or decreased libido. Examples of drugs implicated as a cause of ED include hydrochlorothiazides and beta-blocking agents. Medications used to treat depression, particularly the SSRIs such as citalopram (Celexa), escitalopram (Lexapro), fluoxetine (Prozac, Prozac Weekly, Sarafem), fluvoxamine (Luvox, Luvox CR), paroxetine (Paxil, Paxil CR, Pexeva) and sertraline (Zoloft), may also contribute to ED.9 Bupropion (Wellbutrin) which has a predominant effect on blocking the reuptake of dopamine is an antidepressant with lower incidence of ED.10 The side effects of 5ARIs occurring in fewer than 5% of patients can include gynaecomastia, ED, loss of libido and ejaculatory dysfunction.11
Surgical intervention for a number of conditions may remove anatomical structures necessary to erection, damage nerves, or impair blood supply. Erectile dysfunction is a common complication of treatments for prostate cancer, including prostatectomy and destruction of the prostate by external beam radiation, although the prostate gland itself is not necessary to achieve an erection. As far as inguinal hernia surgery is concerned, in most cases, and in the absence of postoperative complications, the operative repair can lead to a recovery of the sexual life of people with preoperative sexual dysfunction, while, in most cases, it does not affect people with a preoperative normal sexual life.
Effective treatment for erectile dysfunction is available, and for most men will allow the return to a fulfilling sex life. The side effects of the treatment for erectile dysfunction vary depending on the treatment that is used. Some may interrupt the spontaneity of sexual activity. For example, PDE-5 inhibitors typically need to be taken one hour before sex. Side effects may include headaches, indigestion, vasodilation, diarrhoea and blue tinge to vision. Other treatments such as penile injections may cause pain at the injection site, or an erection that will not go down. Treatment options need to be carefully discussed with your doctor to determine which one is best suited to you.
Counselling or sex therapy (58% of people find this works for them) –mind-related causes of erectile dysfunction can affect anyone. They are more likely if you experience erectile dysfunction at a younger age. Talking to a counsellor or therapist can help some people overcome erectile dysfunction related to these problems, possibly for good. They can also help you if your erectile dysfunction is causing you stress, as this can make matters worse.
As with most other organ system in the human body, changes and loss of function is normal consequence of the ageing process. This is also true of the endocrine system, specifically the levels of testosterone production from the Leydig cells of the testicle. Accompanying the decrease in testosterone is a decrease in erections which also has a component in decrease in the blood supply to the penis making erection not as frequent and not as rigid compared with a young man’s erectile function. Although these changes are in itself not life threatening, they can impact a man’s relationship with his partner, and also ED may be a harbinger of other undiagnosed conditions such as coronary artery disease (CAD), hypercholesterolaemia or diabetes mellitus.6
Sexual stimulation causes the release of neurotransmitters from cavernosal nerve endings and relaxation factors from endothelial cells lining the sinusoids. NOS produces NO from L-arginine, and this, in turn, produces other muscle-relaxing chemicals, such as cGMP and cyclic adenosine monophosphate (cAMP), which work via calcium channel and protein kinase mechanisms (see the image below). This results in the relaxation of smooth muscle in the arteries and arterioles that supply the erectile tissue, producing a dramatic increase in penile blood flow.
The association between low testosterone and ED is not entirely clear. Although these 2 processes certainly overlap in some instances, they are distinct entities. Some 2-21% of men have both hypogonadism and ED; however, it is unclear to what degree treating the former will improve erectile function.  About 35-40% of men with low testosterone see an improvement in their erections with testosterone replacement; however, almost 65% of these men see no improvement. 
In addition, when research has shown a nutrient such as zinc or niacin to improve sexual function, it's usually in people who are deficient in it. So, before you stock up on over-the-counter nutritional supplements for ED, speak with your doctor. He can test you for deficiencies and steer you toward the most effective and safest way to treat your erectile dysfunction.
Alprostadil, a drug also discussed in Penile Injection Therapy, has been formulated into a small suppository. This applicator is inserted into the urethra (the canal through which urine and semen are excreted), and with compression of the applicator, the small suppository is released into the urethra. With massage/rubbing of the penis, the suppository dissolves in the urethra and the medication is absorbed into the penis where it acts to increase blood flow into the penis. One cannot use any form of lubricant (for example, K-Y jelly, Vaseline, etc) to help with the insertion of the suppository. Urinating prior to inserting the applicator will help moisten/lubricate the urethra.
In 1983, Brindley injected the corpora of several SCI men with phentolamine (85). Two out of the three men had a sufficient erection produced. Since then multiple reports on the efficacy of intracavernosal therapy have been published using, phentolamine, papaverine, prostaglandin, vasoactive intestinal peptide (VIP), and these medications in combination (86-90). These medications have been found to be extremely effective for neurogenic ED due to their ability act locally and essentially bypassing neuronal pathways. Local therapies are usually considered second-line after PDE5i fail to elicit a desired response which can occur in about 25–30% of men with ED, in general (91). Furthermore, the locally delivered medications can be quite dangerous if not used appropriately as priapism and significant pain with injections can occur. These specific occurrences have been suggested as a reason for high discontinuation rates with intracavernosal therapy (92).
Tests such as the bulbocavernosus reflex test are used to determine if there is sufficient nerve sensation in the penis. The physician squeezes the glans (head) of the penis, which immediately causes the anus to contract if nerve function is normal. A physician measures the latency between squeeze and contraction by observing the anal sphincter or by feeling it with a gloved finger inserted past the anus.
The sympathetic pathway originates from the 11th thoracic to the 2nd lumbar spinal segments and goes via the white rami to enter the sympathetic chain ganglia. Subsequently nerves travel through the lumbar splanchnic to inferior mesenteric and superior hypogastric nerves to the pelvic plexus. The T10 through T12 segments are most often the origin of sympathetic fibers, and the sympathetic chain ganglia that innervate the penis are located in the sacral and caudal ganglia (3).
In most healthy men, some of the drug will remain in the body for more than two days after a single dose of tadalafil. Metabolism (clearing of the drug from the body) of tadalafil can be slowed by liver disease, kidney disease, and concurrent use of certain medications (such as erythromycin, ketoconazole, and protease inhibitors). Slowed breakdown allows tadalafil to stay in the body longer and potentially increase the risk for side effects. Therefore, doctors have to lower the dose and frequency of tadalafil in the following examples:
Another approach is vacuum therapy. The man inserts his penis into a clear plastic cylinder and uses a pump to force air out of the cylinder. This forms a partial vacuum around the penis, which helps to draw blood into the corpora cavernosa. The man then places a special ring over the base of the penis to trap the blood inside it. The only side effect with this type of treatment is occasional bruising if the vacuum is left on too long.
Apomorphine is a non-selective D1/D2 receptor agonist with moderate efficacy and good tolerability in the treatment of mild ED (80). Apomorphine can be administered via subcutaneous injection or sublingually. However, studies have shows a lower efficacy for apomorphine compared to oral sildenafil (81,82). Apomorphine has a set role in the management of PD for non-motor symptoms, and has been reported to cause spontaneous erections and possible hypersexuality in PD men (83,84). Its role in the management of ED has been postulated for men with PD but should be considered as an alternative to sildenafil.
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.
ICI Alprostadil may be used as a mixture with two other drugs to treat ED. This combination therapy called "bimix or trimix" is stronger than alprostadil alone and has become standard treatment for ED. Only the Alprostadil ingredient is FDA approved for ED. The amount of each drug used can be changed based on the severity of your ED, by an experienced health professional. You will be trained by your health professional on how to inject, how much to inject and how to safely raise the drug's dosage if necessary.