Viagra, also known as sildenafil , is a prescription treatment primarily intended for addressing erectile problems . It functions by enhancing blood circulation to the phallus, which enables men to achieve and maintain an erection sufficient for sexual intercourse . While typically safe when administered as instructed by a qualified professional ,