Phenazopyridine is a medication which, when excreted by the kidneys into the urine, has a local analgesic effect on the urinary tract. It is often used to help with the pain, irritation, or urgency caused by urinary tract infections, surgery, or injury to the urinary tract. In 2021, it was the 285th most commonly prescribed medication in the United States, with more than 700,000 prescriptions.