The drug , commonly known as Viagra, is a doctor-approved treatment primarily used to treat difficulty achieving an erection in men . Developed initially for heart conditions , its unexpected side effects relating to blood vessel relaxation led to its repurposing as an reliable solution for sexual health issues . It works by increasing blood flow t