Evidence supports drinking cranberry juice — a familiar home remedy — to treat urinary tract infection. People have used cranberries, especially cranberry juice, for decades to prevent and treat UTIs. The fruit contains organic substances, such as quinic acid and citric acid, which act as antibacterial agents to help eliminate bacteria from the bladder.