Viagra, medically known sildenafil, is primarily prescribed for treating ED, a condition characterized by the inability to achieve or maintain an firmness sufficient for satisfactory sexual intercourse. Beyond this main application, it's sometimes off-label used to alleviate pulmonary hypertension,