Coral reefs are primarily formed by stony corals (Scleractinia), which belong to the class Anthozoa of the phylum Cnidaria
Anthozoans include corals and sea anemones, which have a polyp-only life stage and contribute to reef-building through calcium carbonate deposition.