Viagra, referred to as sildenafil , is primarily prescribed to manage difficulty achieving an erection in men. It can also be prescribed in certain situations for addressing pulmonary high blood pressure in the lungs . Its how it works involves relaxing blood vessels in the penis allowing for increased blood flow and supporting an penile firmness.