Urinary analgesics are used to treat pain, burning, and discomfort caused by urinary tract infections (UTIs) and other urinary conditions. These medications generally work by soothing the lining of the urinary tract, which helps to reduce pain and discomfort. Urinary analgesics come in different forms, including oral tablets and injections. Examples include phenazopyridine (Pyridium, AZO) and dimethyl sulfoxide (RIMSO-50).