The kidneys remove wastes and extra water from the blood to form urine. Urine flows from the kidneys to the bladder through the ureters.
The wastes in your blood come from the normal breakdown of active muscle and from the food you eat. Your body uses the food for energy and self-repair. After your body has taken what it needs from the food, waste is sent to the blood. If your kidneys did not remove these wastes, the wastes would build up in the blood and damage your body.
The actual filtering occurs in tiny units inside your kidneys called nephrons. Every kidney has about a million nephrons. In the nephron, tiny blood vessels called capillaries intertwine with tiny urine-carrying tubes called tubules. A complicated chemical exchange takes place, as waste materials and water leave your blood and enter your urinary system.
At first, the tubules receive a combination of waste materials and chemicals that your body can still use. Your kidneys measure out chemicals like sodium, phosphorus, and potassium and release them back to the blood to return to the body. In this way, your kidneys regulate the body's level of these substances. The right balance is necessary for life, but excess levels can be harmful.