Osmoregulation and excretion systems allow animals to balance water and solute levels. Freshwater animals gain water and lose salts, while marine animals deal with water loss and salt gain. Land animals conserve water. Kidneys and other tubular systems filter, reabsorb, and secrete materials to produce urine for nitrogen waste excretion. The form of nitrogenous waste, such as ammonia, urea, or uric acid, depends on an animal's habitat and phylogeny. Diverse excretory organs, including protonephridia, metanephridia, Malpighian tubules, and kidneys, regulate solute levels through tubular networks. Kidneys consist of nep