Sildenafil, sold as Viagra, Revatio and under various other trade names, is a drug used to treat erectile dysfunction and pulmonary arterial hypertension.