Coral reef a protective area, or it may lie between the reef and the shore, and in this case is a flat, rocky area. Fish tend to prefer it when it is present. The reef lagoon is an entirely enclosed region, which creates an area less affected by wave action and often contains small reef patches. However, the "topography of coral reefs is constantly changing. Each reef is made up of irregular patches of algae, sessile invertebrates, and bare rock and sand. The size, shape and relative abundance of these patches changes from year to year in response to the various factors
Coral reef in open water rather than next to a shoreline. Like an atoll, it is thought that these reefs are formed either as the seabed lowered or sea level rose. Formation takes considerably longer than for a fringing reef, thus barrier reefs are much rarer. The best known and largest example of a barrier reef is the Australian Great Barrier Reef. Other major examples are the Belize Barrier Reef and the New Caledonian Barrier Reef. Barrier reefs are also found on the coasts of Providencia, Mayotte, the Gambier Islands, on the southeast coast coast of Kalimantan, on parts of the coast