Androgens are essential for male physical activity and normal erectile function. Hence, age-related testosterone deficiency, known as late-onset hypogonadism (LOH), is considered a risk factor for erectile dysfunction (ED). This chapter summarizes relevant basic research reports examining the effects of testosterone on erectile function. Testosterone affects several organs and is especially active on the erectile tissue. The mechanism of testosterone deficiency effects on erectile function and the results of testosterone replacement therapy (TRT) have been well studied. Testosterone affects nitric oxide (NO) production and phosphodiesterase type 5 (PDE-5) expression in the corpus cavernosum through molecular pathways, preserves smooth muscle contractility by regulating both contraction and relaxation, and maintains the structure of the corpus cavernosum. Interestingly, testosterone deficiency has relationship to neurological diseases, which leads to ED. Testosterone replacement therapy is widely used to treat patients with testosterone deficiency; however, this treatment might also induce some problems. Basic research suggests that PDE-5 inhibitors, L-citrulline, and/or resveratrol therapy might be effective therapeutic options for testosterone deficiency-induced ED. Future research should confirm these findings through more specific experiments using molecular tools and may shed more light on endocrine-related ED and its possible treatments.