Viagra is a well-known medication primarily used to treat erectile dysfunction (ED) in men. It was developed by the pharmaceutical company Pfizer and was approved by the U.S. Food and Drug Administration (FDA) in 1998. The generic name for Viagra is sildenafil citrate.