This document discusses male sexual dysfunction and erectile dysfunction (ED). It defines ED and provides prevalence data, noting that the risk of ED increases with age. It describes the anatomy involved in erection, ejaculation, and the arterial and venous blood supply of the penis. The mechanisms and phases of erection are explained. Common risk factors, causes, and medications associated with ED are listed. Methods for diagnosing ED including history, physical exam, the International Index of Erectile Function (IIEF), and potential tests like nocturnal penile tumescence monitoring and duplex ultrasound are outlined.