Sildenafil citrate, commonly known as Viagra, was originally developed as a treatment for hypertension and angina but was found to cause unwanted side effects of prolonged erections. It works by inhibiting phosphodiesterase type 5, allowing for increased blood flow to cause an erection. It is prescribed for erectile dysfunction and pulmonary hypertension. Common side effects include headache, flushing, and nasal congestion. It should not be taken with nitrates due to the risk of dangerously low blood pressure.