Coral reefs are important ecosystems because they provide habitat and shelter for a wide variety of marine life, including fish, invertebrates, and plants. They also protect coastlines from erosion by acting as natural barriers. Additionally, coral reefs support local economies through tourism, fishing, and pharmaceutical research. Overall, coral reefs are crucial for maintaining biodiversity and the health of our oceans.