Coral reefs are important ecosystems because they support a wide range of marine biodiversity, providing habitats for numerous species of fish, invertebrates, and other marine organisms. They also protect coastlines from erosion by acting as natural barriers against waves and storms. Additionally, coral reefs contribute to the global economy through activities such as tourism, fishing, and pharmaceutical research. Overall, coral reefs play a crucial role in maintaining the health and balance of marine ecosystems worldwide.