Sildenafil is a generic prescription drug that’s used to treat erectile dysfunction (ED) and pulmonary arterial hypertension (PAH). Sildenafil is available as the brand-name drugs Revatio and Viagra.