The urinary system, comprising the kidneys, ureters, bladder, and urethra, functions to eliminate waste, regulate blood volume and pressure, and control electrolytes and pH. The kidneys filter blood through nephrons, leading to urine formation via filtration, reabsorption, and secretion processes. Diseases affecting the urinary system include glomerulonephritis, pyelitis, and renal calculi, impacting kidney function and waste elimination.