The drug , commonly known as Viagra, is a prescription treatment mainly used to manage erectile dysfunction in males . Developed initially for cardiovascular problems , its unanticipated side effects relating to the widening of blood vessels led to its new application as an effective solution for sexual dysfunction . It works by boosting circulatio