The kidneys filter the blood to remove wastes and produce urine. The ureters, urinary bladder, and urethra together form the urinary tract, which acts as a plumbing system to drain urine from the kidneys, store it, and then release it during urination.