Cranberry juice is an old-time remedy for urinary tract infections... both prevention and cure. It acidifies the urine, making it less amenable to growing bacteria.
Actually, they used to think that it was effective because of acidity, but they discovered it wasn't because of that (other acidic substances didn't have the same effect). Cranberry (and blueberry) prevents the bacteria from grabbing on to the membrane walls.