Viagra, commonly known as the drug , is primarily used to treat male dysfunction in individuals . This is characterized by the inability to maintain a lasting erection necessary for sexual activity . Beyond managing ED, Viagra can occasionally be recommended off-label for situations such as pulmonary hypertension , though such use necessitates care