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.
Sandbar shark (C. plumbeus): The sandbar shark has a snout that is shorter than the width of its mouth and a large first dorsal fin originating over the axis of the pectoral fin (the Caribbean reef shark’s first dorsal fin is further from the head than the sandbar shark). Unlike the Caribbean reef shark, the sandbar shark has widely spaced non-overlapping dermal denticles that lack defined teeth on their free edges.
Grey reef sharks feed mainly on bony fishes, with cephalopods such as squid and octopus being the second-most important food group, and crustaceans such as crabs and lobsters making up the remainder. The larger sharks take a greater proportion of cephalopods. These sharks hunt individually or in groups, and have been known to pin schools of fish against the outer walls of coral reefs for feeding. Hunting groups of up to 700 grey reef sharks have been observed at Fakarava atoll in French Polynesia. They excel at capturing fish swimming in the open, and they complement hunting whitetip reef sharks, which are more adept at capturing fish inside caves and crevices. Their sense of smell is extremely acute, being capable of detecting one part tuna extract in 10 billion parts of sea water. In the presence of a large quantity of food, grey reef sharks may be roused into a feeding frenzy; in one documented frenzy caused by an underwater explosion that killed several snappers, one of the sharks involved was attacked and consumed by the others.
There is a variety of biotic reef types, including oyster reefs and sponge reefs, but the most massive and widely distributed are tropical coral reefs. Although corals are major contributors to the framework and bulk material comprising a coral reef; the organisms most responsible for reef growth against the constant assault from ocean waves are calcareous algae, especially, although not entirely, coralline algae.