Mangroves play a crucial role in coastal protection by acting as a natural barrier against storms, tsunamis, and erosion. Their complex root systems help to stabilize coastlines, reducing the impact of waves and storm surges. Additionally, mangroves can absorb and dissipate wave energy, helping to protect coastal communities from flooding and damage during extreme weather events. The dense vegetation of mangroves also helps to trap sediments and reduce erosion, contributing to the overall health and stability of coastal ecosystems.