Sildenafil is a medicine used to treat erection problems (erectile dysfunction). Sildenafil is also sometimes used to treat pulmonary hypertension (high blood pressure in the blood vessels that supply the lungs).