It's actually the hard, colorful calcareous skeleton secreted by certain marine polyps
But 
corals get most of their food from marine plants that actually live inside the coral 
... Subclass - 1-Octacorilla (soft corals) 2-Hexacorilla (Hard corals) ... Its highly 
used for ornamental purpuses.