In addition to eliminating toxins, the kidneys perform various functions. It balances water and minerals in the blood, produces chemicals that help form red blood cells, and produces a form of vitamin D that’s essential for bone health—all of these mechanisms affect kidney disease, as we’ll talk about later.