What is a coral reef made of?

Mostly it is made of living corals, sponges and other ogranims living on top of compressed dead coral and other animals skeletons.