The function of the kidney is to remove excess fluid and waste from blood, releasing hormones which manage bp and maintains the body’s electrolyte balance.