Grey reef sharks are often curious about divers when they first enter the water and may approach quite closely, though they lose interest on repeat dives. They can become dangerous in the presence of food, and tend to be more aggressive if encountered in open water rather than on the reef. There have been several known attacks on spearfishers, possibly by mistake, when the shark struck at the speared fish close to the diver. This species will also attack if pursued or cornered, and divers should immediately retreat (slowly and always facing the shark) if it begins to perform a threat display. Photographing the display should not be attempted, as the flash from a camera is known to have incited at least one attack. Although of modest size, they are capable of inflicting significant damage: during one study of the threat display, a grey reef shark attacked the researchers' submersible multiple times, leaving tooth marks in the plastic windows and biting off one of the propellers. The shark consistently launched its attacks from a distance of 6 m (20 ft), which it was able to cover in a third of a second. As of 2008, the International Shark Attack File listed seven unprovoked and six provoked attacks (none of them fatal) attributable to this species.
The "hunch" threat display of the grey reef shark is the most pronounced and well-known agonistic display (a display directed towards competitors or threats) of any shark. Investigations of this behavior have been focused on the reaction of sharks to approaching divers, some of which have culminated in attacks. The display consists of the shark raising its snout, dropping its pectoral fins, arching its back, and curving its body laterally. While holding this posture, the shark swims with a stiff, exaggerated side-to-side motion, sometimes combined with rolls or figure-8 loops. The intensity of the display increases if the shark is more closely approached or if obstacles are blocking its escape routes, such as landmarks or other sharks. If the diver persists, the shark will either retreat or launch a rapid open-mouthed attack, slashing with its upper teeth.
Socially, they are mostly loners unless living in a threatening ecosystem. These are the first and the only species of sharks that are known to “sleep” on the ocean floor or within reef caves. It is believed that these sharks are not actually sleeping but merely resting. These sharks have actually been given the nickname “sleeping sharks” because of their habit of lying motionless at the sea bottom. This is a somewhat unusual and unique behavior of these sharks.
Corals, including some major extinct groups Rugosa and Tabulata, have been important reef builders through much of the Phanerozoic since the Ordovician Period. However, other organism groups, such as calcifying algae, especially members of the red algae Rhodophyta, and molluscs (especially the rudist bivalves during the Cretaceous Period) have created massive structures at various times. During the Cambrian Period, the conical or tubular skeletons of Archaeocyatha, an extinct group of uncertain affinities (possibly sponges), built reefs. Other groups, such as the Bryozoa have been important interstitial organisms, living between the framework builders. The corals which build reefs today, the Scleractinia, arose after the Permian–Triassic extinction event that wiped out the earlier rugose corals (as well as many other groups), and became increasingly important reef builders throughout the Mesozoic Era. They may have arisen from a rugose coral ancestor. Rugose corals built their skeletons of calcite and have a different symmetry from that of the scleractinian corals, whose skeletons are aragonite. However, there are some unusual examples of well-preserved aragonitic rugose corals in the late Permian. In addition, calcite has been reported in the initial post-larval calcification in a few scleractinian corals. Nevertheless, scleractinian corals (which arose in the middle Triassic) may have arisen from a non-calcifying ancestor independent of the rugosan corals (which disappeared in the late Permian).