Viagra, typically called sildenafil, is primarily prescribed to treat erectile dysfunction (ED), a condition where men struggle with achieving or maintaining an erection sufficient for satisfactory sexual intercourse. It works by increasing circulation to the penis, enabling in physical firmness.