Viagra, generically known as the medication , is a prescription treatment primarily prescribed for treating impotence . It works by promoting blood circulation to the male reproductive area , which allows men attain and keep an uprightness sufficient for satisfying intercourse . While generally safe when taken as instructed by a qualified provider