Coral Reef Food Web — Who Eats Whom on the Reef
The coral reef food web is the network of feeding relationships that moves energy and nutrients through a reef. It starts with producers — the symbiotic algae inside corals, turf algae, seaweeds, seagrasses and phytoplankton — that capture sunlight by photosynthesis. Energy then passes to primary consumers such as parrotfish, surgeonfish, sea urchins and zooplankton; to secondary consumers such as butterflyfish, damselfish, wrasses and small predators; and to top predators such as reef sharks, groupers, barracuda and jacks. Decomposers and detritivores — bacteria, sea cucumbers, worms and crabs — recycle waste and dead material back into nutrients. Only a small fraction of energy passes up each level, so predators are far fewer than the organisms below them.
A coral reef can look like a chaotic crowd of fish, corals and invertebrates, but underneath is an orderly flow of energy. Every grazer, hunter and scavenger on the reef is part of a food web: a set of interlinked food chains that connects the sunlight hitting the surface to the shark cruising the reef edge. Understanding the coral reef food web explains why reefs are so productive in nutrient-poor tropical seas, why removing one group of animals can upset the whole system, and why healthy reefs need a balance of plants, grazers and predators. This guide breaks the reef food web down level by level, with examples of who eats whom.
Producers: where reef energy begins
Nearly all the energy in a coral reef food web starts with photosynthesis by algae and plants.
The most important producers on a reef are the ones you cannot see: the microscopic algae called zooxanthellae living inside coral tissues. They photosynthesise and pass most of the sugars they make to their coral host, which is why reef-building corals can thrive in clear, nutrient-poor water. Through this partnership, corals act partly as producers themselves — see why zooxanthellae are important to corals.
Around the corals, other producers add to the energy supply. Fast-growing turf algae form a thin fuzz on dead coral and rock and are a major food for grazers. Larger seaweeds (macroalgae), coralline algae and seagrasses grow in lagoons and on reef flats, and phytoplankton drift in the water above. Nitrogen-fixing cyanobacteria help supply scarce nutrients. Together, these producers make reefs among the most productive ecosystems in the ocean, as explained in why coral reefs have such high productivity and coral reef plants.

Primary consumers: the grazers and plankton-eaters
Herbivores eat the producers directly. On reefs, their grazing is essential to keep algae from smothering corals.
Parrotfish scrape algae from rock and dead coral with beak-like fused teeth, and in doing so grind up limestone that they excrete as fine sand. Surgeonfish, rabbitfish and some damselfish crop turf algae, and certain damselfish even “farm” their own algae patches. Sea urchins, such as the long-spined Diadema, are powerful grazers, and many snails, chitons and crabs also feed on algae.
In the water column, tiny zooplankton — copepods, larvae of fish and invertebrates, and other drifting animals — graze on phytoplankton. They form the next link for the reef’s many plankton feeders. Corals are also consumers: at night many coral polyps extend their tentacles to catch zooplankton, supplementing the food they get from their algae. You can read more in what do coral reefs eat.
Secondary consumers and top predators
Above the grazers sits a crowded middle tier of carnivores, topped by a small number of large predators.
Secondary consumers eat herbivores, zooplankton and small invertebrates. Clouds of planktivorous fish such as anthias, chromis and fusiliers pick zooplankton out of the current. Butterflyfish and some filefish eat coral polyps, while wrasses, goatfish and triggerfish hunt worms, crabs, snails and urchins. Invertebrate predators include octopuses, mantis shrimps, cone snails and sea stars, including the coral-eating crown-of-thorns starfish. Cleaner wrasses and cleaner shrimps even feed on parasites picked from other fish.
Tertiary consumers and top predators include groupers, snappers, moray eels, jacks and trevally, barracuda and reef sharks such as grey reef, blacktip and whitetip reef sharks. Some large visitors — dolphins, larger sharks and seabirds — also feed on reef fish. Because only a small fraction of energy moves up each step, top predators are relatively few. But they help regulate the numbers and behaviour of the animals below them.
Real reef food webs are messy rather than neat ladders. Many animals feed at more than one level: a grouper may eat both crabs and fish, and a coral is both a producer partner and a plankton-eater. That is why scientists talk about food webs rather than simple food chains. For more on the cast of characters, see what animals live in the coral reef.


Decomposers and recyclers: closing the loop
In nutrient-poor tropical water, reefs survive by recycling almost everything.
When reef organisms die, excrete waste or release mucus, that material becomes detritus and dissolved organic matter. Bacteria and other microbes break it down, releasing nutrients that producers can use again. Detritivores such as sea cucumbers, many worms, hermit crabs and some shrimps feed on detritus and sediment. Sponges play a surprisingly large role: research has shown that many reef sponges take up dissolved organic matter and turn it into cells and particles that other animals can eat, a pathway nicknamed the “sponge loop”. Learn more on our sponges page.
This tight recycling is one answer to a long-standing puzzle sometimes called Darwin’s paradox: how reefs can be so rich in life while surrounded by clear, nutrient-poor ocean. Efficient symbiosis, nitrogen fixation, sponge and microbial recycling and the capture of plankton from passing currents all help keep energy and nutrients within the reef.
When the food web breaks
Because every level is connected, removing or adding one group of animals can ripple through the whole reef.
- Losing grazers. When herbivorous fish are overfished, or when Caribbean Diadema urchins died in huge numbers in 1983–84, seaweed can spread over reefs and stop young corals from settling. This shift from coral to algae is hard to reverse.
- Losing predators. Removing sharks and large predatory fish changes the numbers and behaviour of smaller fish, with knock-on effects that scientists are still working to understand.
- Outbreaks. Crown-of-thorns starfish outbreaks can strip large areas of coral; nutrient runoff that boosts plankton has been linked to better survival of their larvae.
- Losing the base. When corals bleach and die, the reef loses a key producer partnership and the structure that shelters fish, so the whole web shrinks.
Keeping a balanced food web is one of the goals of reef management: protecting herbivores, limiting overfishing of predators, reducing runoff and tackling ocean warming all help the web stay intact. See coral reef conservation and what happens when coral reefs die.

Related on TheSea
- Why Are Coral Reefs Dying Off?
- Where Is The Oldest Coral Reef?
- How Much Of The Ocean Is A Coral Reef?
- What Forms The Structures Called A Coral Reef?
- Coral Reef Definition
- Why Are Coral Reefs In Tropical Waters?
- How Many Coral Reefs Are There?
- Why Are Coral Reefs Important In A Marine Ecosystem?
- Why Are Coral Reefs Overexploited?
- What Do Coral Reefs Do?
- How Have Coral Reefs Changed Over Time?
- In What Environment Do Coral Reefs Form?
What is an example of a coral reef food chain?
Sunlight is captured by algae, which are eaten by a parrotfish, which is eaten by a grouper, which may in turn be eaten by a reef shark. Another chain runs from phytoplankton to zooplankton to small plankton-eating fish to larger predators.
What are the producers in a coral reef?
The symbiotic algae (zooxanthellae) living in corals, turf algae, seaweeds, coralline algae, seagrasses, phytoplankton and photosynthetic bacteria.
What are the top predators on a coral reef?
Reef sharks such as grey reef, blacktip and whitetip reef sharks, along with large groupers, barracuda, jacks and trevally, and moray eels.
Are corals producers or consumers?
Both. Their symbiotic algae photosynthesise and supply most of their food, but coral polyps also catch zooplankton and other particles with their tentacles, especially at night.
What are the decomposers in a coral reef?
Mainly bacteria and other microbes, helped by detritivores such as sea cucumbers, worms, crabs and some shrimps. Sponges also recycle dissolved organic matter into food for other animals.
What happens if you remove parrotfish from a reef?
With fewer grazers, algae can grow unchecked over dead coral and rock, making it harder for new corals to settle and grow. This can push a reef toward an algae-dominated state.
- NOAA Ocean Service — coral reef ecosystems and food webs
- de Goeij et al. (2013), surviving in a marine desert: the sponge loop retains resources within coral reefs, Science
- Hughes et al. (2007), phase shifts, herbivory, and the resilience of coral reefs to climate change, Current Biology
Blane Perun has been exploring Earth’s oceans and marine life for over 25 years. Founder of TheSea.Org in 1999, underwater photographer, coral aquaculture pioneer, and explorer of 80+ countries.
About Blane Perun → More on Coral Reefs →