The medication , commonly known as Viagra, is a prescription treatment primarily used to manage difficulty achieving an erection in men . Developed initially for heart conditions , its unanticipated side effects relating to the widening of blood vessels led to its repurposing as an reliable solution for sexual health issues . It works by enhancing