The medication , commonly known as Viagra, is a doctor-approved treatment largely used to treat erectile dysfunction in men . Developed initially for cardiovascular problems , its unexpected side effects relating to vasodilation led to its new application as an effective solution for sexual dysfunction . It works by increasing circulation to the pr