The drug , commonly known as Viagra, is a regulated treatment mainly used to treat impotence in men . Developed initially for heart conditions , its unexpected side effects relating to the widening of blood vessels led to its repurposing as an effective solution for sexual dysfunction . It works by boosting the amount of blood to the private parts,