This drug is used to treat muscle spasms of the bladder (overactive bladder) and the symptoms associated with it. These symptoms may include the inability to control urination (incontinence), feeling that one has to urinate (urgency), as well as having to go to the bathroom often (frequency).