Oxybutynin is used to treat some bladder control problems and urinary conditions such as overactive bladder, incontinence, urinary frequency (the need to pass urine/pee more often than usual) and urinary urgency (the need to pass urine more urgently than usual).
It works by relaxing the muscles in the bladder and in this way controls the release of urine and eases the symptoms. Read more about bladder control problems.