How is a Coral Reef Formed?

A coral reef is formed when pieces of coral grow on top of each other for years and yeas. This creates the reef. As corals are broke the particles attach themselves to the reef continuing to build on it.