The reef is the rigid structure of carbonate platforms and is located between the internal lagoon and the slope, in the platform margin, in which the framework produced by large-sized skeletons, as those of corals, and by encrusting organisms will resist wave action and form a rigid build up that may develop up to sea-level. Survival of the platform depends on the existence of the reef, because only this part of the platform can build a rigid, wave-resistant structure. The reef is created by essentially in-place, sessile organisms. Today's reefs are mostly built by hermatypic corals. Geologically speaking, reef rocks can be classified as massive boundstones.