Cranberries contain powerful antioxidants called proanthocyanidins or condensed tannins, and they prevent certain bacteria from sticking to the urinary tract," says registered dietitian Lois Ferguson. "And when bacteria can't stick, bacteria cannot cause infection.