Viagra, commonly known as sildenafil, is the medication primarily prescribed to address erectile dysfunction , a ailment where males have difficulty achieving or maintaining an erection of the penis . Beyond this purpose, it can employed off-label for pulmonary hypertension and specific ailments.