Coral reefs are the most biodiverse habitats in the oceans, and like the trees of a rainforest, the coral structures provide the structure of the ecosystem, within which other plants and animals live.