A urinary tract infection is an infection that affects a part of the urinary tract. Lower urinary tract infections may involve the bladder or urethra while upper urinary tract infections affect the kidney.