Viagra is a medication used to treat erectile dysfunction in men. It works by increasing blood flow to the penis during sexual stimulation, helping to achieve and maintain an erection. It should be taken as prescribed by a doctor and is not recommended for recreational use.