Mangrove forests play a crucial role in coastal protection by acting as a natural barrier that helps to reduce the impact of storm surges, waves, and tsunamis. The dense root systems of mangroves help to stabilize the coastline, prevent erosion, and reduce the risk of flooding during extreme weather events. Additionally, mangroves provide habitat for various marine species, which further contributes to the overall health and resilience of coastal ecosystems.