The drug , commonly known as Viagra, is a regulated treatment mainly used to manage difficulty achieving an erection in men . Developed initially for hypertension, its unanticipated side effects relating to vasodilation led to its new application as an effective solution for sexual health issues . It works by increasing circulation to the male orga