This document discusses the management of erectile dysfunction. It begins with definitions and outlines relevant anatomy and the mechanism of erection. It then discusses the various causes of ED including psychogenic, organic, neurological, hormonal and drug-related factors. The management of ED is outlined including history, physical exam, investigations, and various treatment options from lifestyle changes and oral medications to injections, vacuum devices, and penile prostheses. Surgical management including arterial reconstructive surgery is also summarized with details of the surgical technique.