Mangroves are important coastal habitats because they provide various ecosystem services such as protecting coastlines from erosion, acting as nurseries for many marine species, filtering pollutants from the water, and storing carbon to help mitigate climate change. Additionally, mangroves contribute to biodiversity and support local communities by providing resources for food, medicine, and livelihoods.