Otoliths are bony structures in fish that record chemical signatures from the surrounding environment over time. Analysis of otolith microchemistry can be used to identify fish stocks, determine habitat use and migration patterns. Elements like strontium and barium deposited in otoliths vary between freshwater, estuarine and marine environments. This allows distinguishing anadromous fish that migrate between habitats and tracking their movements. Studies have used this technique to study life histories of species in Amazonian rivers and identify nursery areas of herring. Otolith microchemistry is a valuable tool for answering ecological questions about fish.