Mangroves are an important part of the coastal ecosystem. They provide a habitat for many different species of animals and plants. Mangroves also help to protect the shoreline from erosion and storm surge.