Viagra is a prescription medication used to treat erectile dysfunction (ED) in men. Its active ingredient, sildenafil citrate, works by increasing blood flow to the penis, helping to achieve and maintain an erection during sexual activity. Viagra is typically taken about 30–60 minutes before intercourse and is effective for up to 4 hours. It should only be used under medical supervision, as it may cause side effects and interact with certain medications.