Some 380 million years ago, during the Devonian period, prehistoric animals progressively started to leave a water environment to colonize the ground. Primitive kidneys initially devoted to excrete excess water and save electrolytes, evolved to excrete metabolic wastes and electrolytes in a small volume of water, allowing these organisms to save water.