Euryhaline organisms are able to adapt to a wide range of salinities. An example of a euryhaline fish is the molly (Poecilia sphenops) which can live in fresh water, brackish water, or salt water. The green crab (Carcinus maenas) is an example of a euryhaline invertebrate that can live in salt and brackish water. Euryhaline organisms are commonly found in habitats such as estuaries and tide pools where the salinity changes regularly. However, some organisms are euryhaline because their life cycle involves migration between freshwater and marine environments, as is the case with salmon and eels.
The opposite of euryhaline organisms are stenohaline ones, which can only survive within a narrow range of salinities. Most freshwater organisms are stenohaline, and will die in seawater, and similarly most marine organisms are stenohaline, and cannot live in fresh water.
Osmoregulation is the active process by which an organism maintains its level of water content. The osmotic pressure in the body is homeostatically regulated in such a manner that it keeps the organism's fluids from becoming too diluted or too concentrated. Osmotic pressure is a measure of the tendency of water to move into one solution from another by osmosis.
Two major types of osmoregulation are osmoconformers and osmoregulators. Osmoconformers match their body osmolarity to their environment actively or passively. Most marine invertebrates are osmoconformers, although their ionic composition may be different from that of seawater.
Osmoregulators tightly regulate their body osmolarity, which always stays constant, and are more common in the animal kingdom. Osmoregulators actively control salt concentrations despite the salt concentrations in the environment. An example is freshwater fish. The gills actively uptake salt from the environment by the use of mitochondria-rich cells. Water will diffuse into the fish, so it excretes a very hypotonic (dilute) urine to expel all the excess water. A marine fish has an internal osmotic concentration lower than that of the surrounding seawater, so it tends to lose water (to the more negative surroundings) and gain salt. It actively excretes salt out from the gills. Most fish are stenohaline, which means they are restricted to either salt or fresh water and cannot survive in water with a different salt concentration than they are adapted to. However, some fish show a tremendous ability to effectively osmoregulate across a broad range of salinities; fish with this ability are known as euryhaline species, e.g., salmon. Salmon has been observed to inhabit two utterly disparate environments — marine and fresh water — and it is inherent to adapt to both by bringing in behavioral and physiological modifications.