Each coral animal secretes calcium carbonate around itself. This makes the solid structure of the colony. When the animal dies, new polyps live on top of the older structure. The rock they make is also called coral.