The kidneys filter excess water and a waste product called urea from blood and from urine. They also produce an enzyme called renin and a variety of hormones. These substances help regulate blood pressure, the production of red blood cells, and the balance of calcium, and phosphorus in the body.