Vertebrates have developed various mechanisms of osmoregulation to maintain homeostasis as their environments present different challenges of varying salt and water concentrations. Marine animals face hypotonic environments and must conserve water while excreting excess salts, using gills or kidneys. Freshwater animals face hypertonic environments and must conserve salts while excreting excess water, also using gills or kidneys. Terrestrial animals face water loss and must minimize evaporation while maximizing water retention and concentrated urine production through specialized organs like the kidney.