Viagra is one brand name of a drug that is used to treat erectile dysfunction (impotence): the inability to get, and maintain, an erection. It is also used in the treatment of high blood pressure specific to the heart and the arteries that feed the lungs. The generic name of the drug is sildenafil (pronounced sill-den-a-fill).