The kidneys remove from the blood liquid waste in the form of urine, keep a stable balance of salts and other substances in the blood, and produce a hormone that aids the formation of red blood cells.