Together the coral reef and mangrove ecosystems form a barrier that protects shorelines from the destructive forces of wind, waves and driven debris. These living structures decrease the erosion and physical damage that can often impose significant economic and environmental costs on coastal communities.