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.
Sexual dysfunction is highly prevalent in men and women. In the MMAS, 52% of the respondents reported some degree of erectile difficulty. Complete ED, defined as (1) the total inability to obtain or maintain an erection during sexual stimulation and (2) the absence of nocturnal erections, occurred in 10% of the respondents. Mild and moderate ED occurred in 17% and 25% of responders, respectively. 
The chemical synthesis of testosterone from cholesterol was achieved in August that year by Butenandt and Hanisch. Only a week later, the Ciba group in Zurich, Leopold Ruzicka (1887–1976) and A. Wettstein, published their synthesis of testosterone. These independent partial syntheses of testosterone from a cholesterol base earned both Butenandt and Ruzicka the joint 1939 Nobel Prize in Chemistry. Testosterone was identified as 17β-hydroxyandrost-4-en-3-one (C19H28O2), a solid polycyclic alcohol with a hydroxyl group at the 17th carbon atom. This also made it obvious that additional modifications on the synthesized testosterone could be made, i.e., esterification and alkylation.
Hypogonadism is a disease in which the body is unable to produce normal amounts of testosterone due to a problem with the testicles or with the pituitary gland that controls the testicles. Testosterone replacement therapy can improve the signs and symptoms of low testosterone in these men. Doctors may prescribe testosterone as injections, pellets, patches or gels.