Tides affect coastal ecosystems in several ways. High tides bring in nutrients and sediment, which can promote the growth of marsh grasses and mangroves. They also provide a habitat for marine life, such as mollusks and crustaceans. Low tides expose tidal flats, which are important feeding and breeding grounds for shorebirds and other wildlife. However, extreme tidal fluctuations can also cause erosion of coastal habitats and disrupt the balance of these ecosystems. Overall, tides play a crucial role in shaping coastal ecosystems and supporting their biodiversity.