The regulation of water and electrolytes within the body, including mechanisms of filtration, reabsorption, and excretion.