A urinary tract infection, or UTI, happens when the urinary tract becomes infected, usually by bacteria. UTIs can affect people of any age, but symptoms may differ between young adults and the elderly.