Kidneys help strengthen your bones by producing an active form of vitamin D. When we take in vitamin D from food or sunlight, it is converted first in the liver and then in the kidneys. The precise chemical balance of your body is regulated by the kidneys. They maintain your blood’s perfect ratio of acidity and minerals, which include sodium, calcium, potassium, chloride, sulfate, phosphate, hydrogen and magnesium.