A urinary tract infection (UTI) is an infection that occurs in any part of the urinary system, including the bladder, urethra, ureters, or kidneys, and is typically caused by bacteria that have entered the urethra and migrated to the bladder or further up the urinary tract.