Like other steroid hormones, testosterone is derived from cholesterol (see figure). The first step in the biosynthesis involves the oxidative cleavage of the side-chain of cholesterol by cholesterol side-chain cleavage enzyme (P450scc, CYP11A1), a mitochondrial cytochrome P450 oxidase with the loss of six carbon atoms to give pregnenolone. In the next step, two additional carbon atoms are removed by the CYP17A1 (17α-hydroxylase/17,20-lyase) enzyme in the endoplasmic reticulum to yield a variety of C19 steroids. In addition, the 3β-hydroxyl group is oxidized by 3β-hydroxysteroid dehydrogenase to produce androstenedione. In the final and rate limiting step, the C17 keto group androstenedione is reduced by 17β-hydroxysteroid dehydrogenase to yield testosterone.
In addition to its role as a natural hormone, testosterone is used as a medication, for instance in the treatment of low testosterone levels in men and breast cancer in women. Since testosterone levels decrease as men age, testosterone is sometimes used in older men to counteract this deficiency. It is also used illicitly to enhance physique and performance, for instance in athletes.
Between 10 and 88% of patients diagnosed with cancer experience sexual problems following diagnosis and treatment. The prevalence varies according to the location and type of cancer, and the treatment modalities used. Sexuality may be affected by chemotherapy, alterations in body image due to weight change, hair loss or surgical disfigurement, hormonal changes, and cancer treatments that directly affect the pelvic region.
An international consensus document was recently published and provides guidance on the diagnosis, treatment and monitoring of late-onset hypogonadism (LOH) in men. The diagnosis of LOH requires biochemical and clinical components. Controversy in defining the clinical syndrome continues due to the high prevalence of hypogonadal symptoms in the aging male population and the non-specific nature of these symptoms. Further controversy surrounds setting a lower limit of normal testosterone, the limitations of the commonly available total testosterone result in assessing some patients and the unavailability of reliable measures of bioavailable or free testosterone for general clinical use. As with any clinical intervention testosterone treatment should be judged on a balance of risk versus benefit. The traditional benefits of testosterone on sexual function, mood, strength and quality of life remain the primary goals of treatment but possible beneficial effects on other parameters such as bone density, obesity, insulin resistance and angina are emerging and will be reviewed. Potential concerns regarding the effects of testosterone on prostate disease, aggression and polycythaemia will also be addressed. The options available for treatment have increased in recent years with the availability of a number of testosterone preparations which can reliably produce physiological serum concentrations.
Barbara Mintzes, at the University of British Columbia, said in a Skype interview, "Androgel was approved for a real condition—men who have a number of clinical or acquired conditions that affect testosterone, either through the testes or pituitary gland. So testosterone replacement therapy makes sense, and producing it in a gel makes sense. Where there is an actual need for the product, there's nothing wrong with that." But, she added, "When this gets marketed for what is essentially healthy aging, the antennas go up."
The most common treatment for erectile dysfunction is drugs known as phosphodiesterase-5 (PDE-5) inhibitors. These include tadalafil (Cialis), vardenafil (Levitra), and sildenafil citrate (Viagra). These are effective for about 75% of men with erectile dysfunction. They are tablets that are taken around an hour before sex, and last between 4 and 36 hours. Sexual stimulation is required before an erection will occur. The PDE-5 inhibitors cause dilation of blood vessels in the penis to allow erection to occur, and help it to stay rigid. Men using nitrate medication (e.g. GTN spray or sublingual tablets for angina) should not use PDE-5 inhibitors.
A common and important cause of ED is vasculogenic. Many men with ED have comorbid conditions such as hyperlipidemia, hypercholesterolemia, tobacco abuse, diabetes mellitus, or coronary artery disease (CAD).  The Princeton III Consensus recommends screening men who present with ED for cardiovascular risk factors; ED may be the earliest presentation of atherosclerosis and vascular disease. 
Clinical trials of the effect of testosterone on glucose metabolism in men have occurred in diabetic and non-diabetic populations. Data specific to aging males is not available. A series of studies investigated the effects of testosterone or dihydrotestosterone given for 6 weeks or 3 months to middle aged, non-diabetic obese men (Marin, Holmang et al 1992; Marin, Krotkiewski et al 1992; Marin et al 1993). It was found that physiological treatment doses led to improved insulin resistance, as measured by the gold standard technique using a euglycemic clamp and/or serum glucose and insulin responses during glucose tolerance test. These improvements were associated with decreased central obesity, measured by computered tomography (CT) or waist-hip ratio, without reduced total fat mass. Insulin resistance improved more with testosterone than dihydrotestosterone treatment and beneficial effects were greater in men with lower baseline testosterone levels. Increasing testosterone levels into the supraphysiological range lead to decreased glucose tolerance.
If a trial of oral ED therapy and withdrawal of offending medications prove to be ineffective in restoring erectile function, it is appropriate for most primary care practitioners to consider referral to a specialist for additional evaluation and discussion of alternative treatment options. These include intracavernous injection therapy, vacuum constriction devices, intraurethral therapy, and possible surgery.
You may find this hard to believe, but some common breakfast foods like Kellogg’s corn flakes and Graham crackers were invented 100 years ago to lower male libido. Kellogg and Graham believed that male sexual desire was the root of society’s problems, so they set out to make bland foods that would take away libido (this is absolutely true; look it up). That low fat, grain-based thing absolutely works wonders for lowering testosterone.