A urinary tract infection, or UTI, happens when the urinary tract becomes infected, usually by bacteria. Most urinary tract infections are caused by 1 type of bacteria, E. coli, which normally lives in the bowel.