Medicinally, cranberry is used today primarily to prevent bladder infections. It may also help to treat infections once they are established.
Researchers are still trying to figure out exactly how cranberry acts. The most supported theory at the moment is that cranberry prevents bacteria from adhering to the bladder wall.
Coalition of Canadian Healthcare Museums and Archives