This medication is used with antibiotics and/or surgery to treat types of bladder infections that are caused by certain bacteria. These bacteria cause the level of ammonia in the urine to become too high. This effect can lead to a certain type of kidney stone (struvite). This medication works by stopping the bacteria from making the ammonia. The decreased levels of ammonia can slow the growth of the kidney stones and make the antibiotic work better on your infection.