The kidneys regulate the balance of ions known as electrolytes in the blood, along with maintaining acid base homeostasis.