Corals are marine invertebrates belonging to the class Anthozoa of phylum Cnidaria. They typically live in compact colonies of many identical individual polyps. The polyps secrete calcium carbonate to form a hard skeleton, which is the foundation of coral reefs.