Tides affect coastal ecosystems in a number of ways. They can influence the distribution of species, the transport of sediment and pollutants, and the exchange of water and nutrients between the land and sea. Tides can also affect the physical structure of coastal habitats, such as by eroding beaches or changing the position of salt marshes.