A urinary tract infection (UTI) is an infection that occurs in any part of the urinary system, which includes the kidneys, ureters, bladder, and urethra. Most UTls affect the lower urinary tract-the bladder and urethra-but they can also spread to the upper urinary tract, including the kidneys, which can be more serious.