The Coral Reef Food Web — Who Eats Whom on the Reef
The coral reef food web is the network of feeding relationships that links every organism on a reef. Energy enters as sunlight, captured by producers — the zooxanthellae algae inside corals, seaweeds, turf algae and phytoplankton. It passes to primary consumers such as parrotfish, surgeonfish, sea urchins and zooplankton, then to secondary consumers such as wrasses, butterflyfish and small groupers, and on to top predators such as large groupers, barracuda and reef sharks. Decomposers — bacteria, fungi and detritivores like sea cucumbers — recycle dead material back into nutrients. A simple example of a reef food chain is: algae → parrotfish → grouper → reef shark.
A coral reef is one of the busiest feeding grounds on the planet. Every surface is grazed, every crevice hides a predator, and even the water is full of tiny animals being eaten by larger ones. Rather than a single food chain, a reef has hundreds of overlapping chains woven into a web. Understanding that web explains why reefs are so productive — and why removing one kind of animal can change the whole reef.

Trophic levels on a coral reef
Ecologists sort reef life into levels based on where each organism gets its energy.
A trophic level is a step in the flow of energy through an ecosystem. On a reef they stack up like this:
- Level 1 — Producers. Organisms that make food from sunlight by photosynthesis: zooxanthellae living inside coral, turf algae, seaweeds, crustose coralline algae, seagrass and phytoplankton.
- Level 2 — Primary consumers (herbivores). Animals that eat producers: parrotfish, surgeonfish, rabbitfish, damselfish, sea urchins, many snails and crabs, green sea turtles and zooplankton feeding on phytoplankton.
- Level 3 — Secondary consumers. Carnivores that eat herbivores and small animals: wrasses, butterflyfish, squirrelfish, small groupers, octopus, many crabs and shrimps, and planktivorous fish that eat zooplankton.
- Level 4 — Tertiary consumers and top predators. Large groupers, snappers, jacks, barracuda, moray eels and reef sharks that eat other fish.
- Decomposers and detritivores. Bacteria, fungi, sea cucumbers, worms and brittle stars that break down dead matter at every level.
For a broader look at these living groups, see the biotic factors of the coral reef.

Coral reef food chain examples
Individual food chains are threads in the web. Here are some common ones.
- Turf algae → parrotfish → grouper → reef shark. The classic grazing chain on a reef.
- Phytoplankton → zooplankton → coral polyps or → damselfish → jack. The plankton chain that brings energy in from the open water.
- Zooxanthellae → coral → butterflyfish → moray eel. Some butterflyfish feed almost entirely on coral polyps.
- Coral → crown-of-thorns starfish → giant triton snail. A coral-eating starfish and one of its few predators.
- Seagrass → green sea turtle → tiger shark. A link between reefs and nearby seagrass meadows.
- Sponges → hawksbill turtle and sponges → angelfish. Sponge-eaters keep fast-growing sponges in check.
Because most reef animals eat several kinds of food, and are eaten by several predators, these chains cross and overlap constantly. That is what makes it a web rather than a ladder.
Corals: producers’ hosts and consumers at once
Corals sit at more than one level of the food web.
Reef-building corals are unusual. The algae inside their tissue photosynthesise and pass sugars to the coral, so in shallow, sunny water a coral gets much of its energy as if it were a plant. But corals are also animals: at night, polyps extend stinging tentacles to catch zooplankton, and they absorb dissolved organic matter from the water. This mix of feeding strategies lets corals thrive in clear, nutrient-poor water. In turn, coral tissue, mucus and spawned eggs feed many animals, from butterflyfish and snails to crown-of-thorns starfish. Read more in what do coral reefs eat.

Recycling: decomposers and the hidden food web
Much of the reef’s energy moves through bacteria, sponges and detritus that you never see.
Reefs live in nutrient-poor water, so recycling is essential. Bacteria break down dead tissue, faeces and coral mucus, releasing nutrients back to the algae. Sea cucumbers process huge volumes of sand, digesting the organic film on each grain. Sponges filter dissolved organic matter from the water and turn it into particles and cells that other animals eat — a pathway scientists call the sponge loop. Together with the microbial loop in the water column, these hidden routes keep nutrients cycling within the reef rather than being lost to the open ocean.
What keeps the food web in balance
Grazers and predators act as checks that keep any one group from taking over.
Herbivores are the key to a coral-dominated reef. By constantly cropping algae, parrotfish, surgeonfish and sea urchins keep space open for corals to grow and for coral larvae to settle. Predators, in turn, help regulate the numbers and behaviour of smaller fish and invertebrates. Some animals have especially large effects for their numbers and are described as keystone species; on Caribbean reefs, the long-spined sea urchin played that role until a mass die-off in the 1980s.
When the reef food web unravels
Remove one strand and the effects can ripple through the whole reef.
Overfishing is the most direct way people alter reef food webs. Removing top predators changes the abundance and behaviour of the fish below them. Removing herbivores allows seaweed to overgrow coral, sometimes flipping a reef from coral to algae. Coral bleaching and disease remove the reef’s foundation, taking away food and shelter for coral-eating and coral-dwelling species. Nutrient pollution boosts algae and can fuel outbreaks of crown-of-thorns starfish, whose larvae survive better when plankton is plentiful. And invasive predators, such as lionfish in the Caribbean, insert a new link that eats small reef fish. The Caribbean story is told in causes of coral reef destruction in the Caribbean.
The good news is that protecting key parts of the web, especially herbivores, can help reefs recover after disturbances. That is why many marine protected areas focus on keeping grazers and predators abundant. See coral reef conservation.

See also: Coral Reef Bleaching.
Related on TheSea
What is an example of a coral reef food chain?
A common example is algae → parrotfish → grouper → reef shark. Another is phytoplankton → zooplankton → damselfish → jack.
What are the producers in a coral reef food web?
Zooxanthellae inside coral tissue, turf algae, seaweeds, crustose coralline algae, phytoplankton and seagrass. They capture sunlight and form the base of the web.
What is the top predator on a coral reef?
Reef sharks such as grey reef, blacktip and whitetip sharks, along with large groupers, barracuda and jacks. Larger visitors like tiger sharks and dolphins may also feed on reefs.
What are the decomposers on a coral reef?
Bacteria are the main decomposers, helped by fungi. Detritivores such as sea cucumbers, worms, brittle stars and some crabs eat dead organic matter and help recycle nutrients.
Are corals producers or consumers?
Both. Corals are animals that catch plankton with their tentacles, but the algae living inside them photosynthesise and supply much of their energy.
What happens to the food web if parrotfish are removed?
Algae can grow unchecked, overgrowing and shading corals and preventing young corals from settling. Over time, the reef can shift from coral to seaweed, with knock-on effects for the animals that depend on coral.
- NOAA Ocean Service: coral reef ecosystems
- Smithsonian Ocean: corals and coral reefs
- de Goeij, J. M. et al. (2013), surviving in a marine desert: the sponge loop, Science
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 the Coral Reef Ecosystem →