Viagra, generically known as the medication , is a prescription medication primarily intended for treating male sexual health issues . It functions by enhancing blood circulation to the penis , which enables men get and maintain an uprightness sufficient for fulfilling activity . While generally safe when taken as prescribed by a medical provider ,