The medication , commonly known as Viagra, is a prescription treatment mainly used to address difficulty achieving an erection in men . Developed initially for cardiovascular problems , its unexpected side effects relating to blood vessel relaxation led to its repurposing as an powerful solution