Corals are marine invertebrates that belong to the class Anthozoa of the phylum Cnidaria. They typically live in compact colonies of many identical individual polyps. Corals are crucial to marine ecosystems, particularly coral reefs, which are some of the most diverse and valuable ecosystems on Earth.