A UTI affects the urinary system, which includes the kidneys, ureters, bladder, and urethra. The urinary system acts as the body’s drainage system by removing excess water and waste. A UTI occurs when the urinary system becomes overwhelmed with bacteria.