The medication , commonly known as Viagra, is a prescription treatment primarily used to treat impotence in men . Developed initially for cardiovascular problems , its unexpected side effects relating to blood vessel relaxation led to its new application as an effective solution for sexual health