Sildenafil (Viagra) is used to treat erectile dysfunction (impotence; inability to get or keep an erection) in men. Sildenafil (Revatio) is used to improve the ability to exercise in adults with pulmonary arterial hypertension (PAH; high blood pressure in the vessels carrying blood to the lungs, causing shortness of breath, dizziness, and tiredness). Children should not usually take sildenafil, but in some cases, a doctor may decide that sildenafil (Revatio) is the best medication to treat a child’s condition. Sildenafil is in a class of medications called phosphodiesterase (PDE) inhibitors. Sildenafil treats erectile dysfunction by increasing blood flow to the penis during sexual stimulation. This increased blood flow can cause an erection. Sildenafil treats PAH by relaxing the blood vessels in the lungs to allow blood to flow easily.
Summary from MedlinePlus.gov, click for more information.