The kidneys are organs that serve several essential regulatory roles in most animals, including vertebrates and some invertebrates.