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
Sea beyond the edge of the continental shelf. Alternatively, marine habitats can be divided vertically into pelagic (open water), demersal (just above the seabed) and benthic (sea bottom) habitats. A third division is by latitude: from polar seas with ice shelves, sea ice and icebergs, to temperate and tropical waters. Coral reefs, the so-called "rainforests of the sea", occupy less than 0.1 percent of the world's ocean surface, yet their ecosystems include 25 percent of all marine species. The best-known are tropical coral reefs such as Australia's Great Barrier Reef, but cold water reefs harbour a wide array of species including