How Do Coral Reefs Work? — An Oasis Powered by Sunlight and Recycling
A coral reef works by capturing sunlight through algae, above all the zooxanthellae inside coral tissue, and recycling nutrients so efficiently that it thrives in nutrient-poor tropical water. Corals feed both from their algae and by catching plankton; sponges turn dissolved organic matter into food through the “sponge loop”; fish move nutrients around the reef. A dense food web of grazers and predators keeps algae and coral-eaters in check, while countless partnerships bind the community together. Reefs cover under 0.1 percent of the ocean yet support at least a quarter of marine species and absorb about 97 percent of wave energy before it reaches shore.
How does a coral reef work as an ecosystem?
A coral reef is one of the most productive ecosystems on Earth, but it sits in some of the least productive water. Tropical surface seas are clear and blue precisely because they contain few nutrients and little plankton. Charles Darwin noticed this contrast on his voyage through the Pacific, and scientists still call it Darwin’s paradox: how can a reef teeming with life exist in what is effectively a marine desert?
The answer is that a reef works as a highly efficient, self-contained machine. It captures sunlight through a variety of algae, most importantly the microscopic algae living inside coral tissue. It holds on to nutrients and passes them from organism to organism rather than letting them drift away. It catches plankton and organic matter from the water that flows over it. And it relies on a dense network of feeding relationships and partnerships that keep each part of the system in balance. This article explains those processes: where the energy comes from, how nutrients are recycled, how corals feed and compete, how grazers and predators shape the community, and what the reef does for the coastlines and people around it. Our companion article on how coral reefs are formed covers the geology of reef building.

Where does a coral reef get its energy?
Like almost all ecosystems, a coral reef runs on sunlight. The energy enters through photosynthesis, carried out by several different groups of organisms. The most important are the zooxanthellae, single-celled dinoflagellate algae that live inside the tissues of reef-building corals and many other reef animals, including giant clams, some sponges, sea anemones and zoanthids. During the day they photosynthesise and pass a large share of what they produce to their hosts, supplying up to 90 percent of a coral’s energy needs. Because of this, a living coral is part animal and part plant, and a reef full of healthy coral is in effect a vast, three-dimensional solar collector.
Other producers add to the reef’s energy budget. Turf algae covering dead coral and rock grow quickly and are grazed constantly, so they pass energy rapidly to fish and invertebrates. Crustose coralline algae, larger seaweeds, seagrasses in lagoons and phytoplankton drifting in the water all contribute. Our article on how algae help the coral reef describes each group. Together, these producers make a healthy reef far more productive per square metre than the open ocean around it.
How does a reef recycle nutrients?
Sunlight is abundant in the tropics, but nitrogen and phosphorus, the nutrients needed to build proteins and DNA, are scarce. Tropical surface waters are separated from the nutrient-rich deep ocean by a stable thermocline, so the nutrients released when organisms die and sink are not returned to the surface. A reef survives by recycling nutrients within itself and by capturing whatever passes by.
Recycling begins inside the coral. The coral catches plankton and excretes ammonia and phosphate as waste; its zooxanthellae absorb these nutrients immediately and use them to grow, then return organic compounds to the coral. Nutrients may cycle between host and symbiont many times without ever leaving the coral. On the wider reef, algae take up nutrients released by animals, grazers eat the algae, and their waste is taken up by algae again. Bacteria in sediments and in the reef framework break down organic matter and release nutrients for reuse, while cyanobacteria fix nitrogen gas from the water, adding new nitrogen to the system.
Fish are important movers of nutrients. A classic study by Judy Meyer and colleagues in the Virgin Islands, published in Science in 1983, found that coral heads sheltering daytime schools of grunts grew faster than those without, because the fish fed elsewhere at night and excreted nitrogen and phosphorus over the corals during the day. Fish that feed in seagrass beds or open water and rest on the reef therefore act as a nutrient delivery service, importing food from surrounding habitats.
What is the sponge loop?
One of the most important discoveries about how reefs retain nutrients concerns sponges. Corals and algae release large amounts of dissolved organic matter into the water, in the form of mucus, sugars and other compounds. This material is invisible and, for most animals, unusable. In 2013, Jasper de Goeij and colleagues showed in a paper in Science that coral reef sponges, many of them hidden in cavities inside the reef framework, take up this dissolved organic matter at very high rates. Rather than storing it, the sponges rapidly shed cells as particulate detritus, which is then eaten by snails, worms, crustaceans and other detritus feeders, passing the energy and nutrients back into the food web.
This sponge loop works in a similar way to the microbial loop in the open ocean, but it keeps resources on the reef instead of letting them be lost to currents. Sponges are also efficient filter feeders of particles and bacteria; in the Red Sea, sponges have been estimated to remove around 60 percent of the phytoplankton drifting past them. Hidden in the cracks and caves of the reef, sponges turn out to be one of the main reasons reefs can thrive in nutrient-poor water.
How do corals feed?
Corals are animals with a mouth, a gut and stinging cells called nematocysts on their tentacles. While their zooxanthellae provide most of their energy, corals still need to hunt, because photosynthesis supplies carbon compounds but very little nitrogen and phosphorus. Many corals extend their tentacles at night, when zooplankton rises from the reef and the surrounding water, and catch small crustaceans, larvae and other plankton with their nematocysts. Some species also trap particles in sheets of mucus that they draw into their mouths, and many absorb dissolved organic matter and nutrients directly from the water.
The balance between feeding on light and feeding on prey varies between species and habitats. Corals in murky or deep water rely more on catching food, while those in clear, shallow water depend more heavily on their algae. When corals bleach and lose their symbionts, some species can partly compensate by increasing their feeding on plankton, which helps explain why some corals survive bleaching better than others.
The physical structure of a reef also helps corals feed. Waves breaking over the rough surfaces of corals disrupt the thin layer of still water that normally surrounds a submerged object, giving the polyps better access to passing nutrients and food. Turbulent water around a reef crest therefore supports faster growth than calm water.
How do corals compete for space?
Space is the most limited resource on a reef. Every square centimetre of hard, well-lit surface is contested by corals, sponges, algae, soft corals, sea squirts and other attached organisms. Corals, despite being rooted in place, compete aggressively. Many grow long sweeper tentacles, armed with especially powerful stinging cells, which they extend at night to sting neighbouring colonies. Others extrude mesenterial filaments, threads of digestive tissue from inside their gut, onto adjacent corals and digest them where they touch. Fast-growing branching and table corals compete in a different way, overtopping slower neighbours and shading them from light.
The outcome of these contests shapes the reef’s structure. Slow-growing massive corals are often aggressive at close range, while fast-growing branching species win by outgrowing and shading. Disturbances such as storms, bleaching and predator outbreaks reset the competition by clearing space, allowing new corals, algae and other organisms to settle. This constant cycle of competition and disturbance is one reason reefs are so diverse.
Who eats whom on a coral reef?
The reef food web is extraordinarily complex. At its base are the algae and the zooxanthellae inside corals. Herbivores such as parrotfish, surgeonfish, rabbitfish, damselfish and sea urchins graze turf algae and seaweeds. Corallivores, including many butterflyfish, some parrotfish, snails and the crown-of-thorns starfish, eat coral tissue directly. Planktivores such as damselfish, anthias, fusiliers and cardinalfish pick zooplankton from the water above the reef. Filter feeders, from sponges and feather stars to Christmas tree worms and giant clams, strain particles from the passing current. Detritivores, including sea cucumbers, hermit crabs, worms and many small crustaceans, consume dead material and recycle it.
Above them are the predators: groupers, snappers, jacks, moray eels, octopuses, barracuda and reef sharks. The reef’s shape provides refuges at every scale, from tiny crevices that shelter shrimp to caves where large groupers rest, and the food web shifts between day and night. Nocturnal fish such as cardinalfish and squirrelfish hide in the reef by day and emerge after dark, while damselfish, surgeonfish, wrasses and parrotfish shelter at night. The same holes may be used by different species in shifts.
Predators and grazers keep the system in balance. Herbivores prevent seaweeds from overgrowing corals, as the collapse of Caribbean reefs after the 1983 die-off of long-spined sea urchins demonstrated. Predators control populations of coral-eating animals. When either group is overfished, the effects ripple through the whole community.
How do partnerships hold the reef together?
Coral reefs are full of symbioses, close relationships between different species. The partnership between corals and zooxanthellae is the foundation, but there are many more. Cleaner wrasse and cleaner shrimp run cleaning stations where larger fish queue up to have parasites, dead skin and mucus picked off; experiments removing cleaner wrasse from patches of reef have shown that fish diversity and abundance decline without them. Clownfish live among the stinging tentacles of host sea anemones, protecting the anemone from some predators and fertilising it with their waste. Gobies share burrows with blind alpheid shrimps, which dig and maintain the burrow while the goby keeps watch.
Even corals have bodyguards. Small crabs of the genus Trapezia and shrimps living among the branches of Pocillopora and Acropora corals defend their hosts against crown-of-thorns starfish and other coral-eaters, pinching the predator’s tube feet, and clear sediment from the coral’s surface. In return they get shelter and feed on coral mucus. These relationships make the reef more resilient: the loss of one partner can weaken another, while healthy partnerships help the community withstand stress.
How do corals reproduce and recover?
A reef works over long timescales as well as daily ones. Corals reproduce both asexually, by budding new polyps and by fragments breaking off and regrowing, and sexually, by releasing eggs and sperm. Many reef-building corals take part in mass spawning, when colonies across a reef release their gametes on a few nights each year, timed by water temperature and the lunar cycle. On the Great Barrier Reef this happens a few nights after a full moon in late spring. The fertilised eggs develop into larvae that drift for days to weeks before settling on suitable surfaces, often cued by crustose coralline algae.
This supply of larvae is what allows reefs to recover after storms, bleaching or predator outbreaks. Reefs that are well connected to healthy neighbours by currents tend to recover faster than isolated ones. Recovery from severe disturbance typically takes a decade or more for fast-growing corals and far longer for slow-growing species, so the frequency of disturbances matters as much as their severity.
What threatens how a reef works?
Many of the threats facing reefs act by disrupting the processes described above. Marine heatwaves break down the coral-algae partnership and cause bleaching. Nutrient pollution and sediment favour seaweeds over corals. Overfishing removes grazers and predators. Outbreaks of the crown-of-thorns starfish, thought to be linked in part to nutrient runoff boosting the survival of its larvae, can strip reefs of coral over large areas. A study by Glenn De’ath and colleagues, published in PNAS in 2012, estimated that the Great Barrier Reef lost about half of its coral cover between 1985 and 2012, with storms, crown-of-thorns starfish and bleaching responsible for most of the decline. Destructive fishing with explosives and cyanide destroys the reef structure itself; our article on how dynamite fishing affects coral reefs covers that threat. Ocean acidification makes it harder for corals and coralline algae to build skeletons.
What do coral reefs do for people?
A working reef provides services worth enormous sums to coastal communities. Reefs act as natural breakwaters. A review by Filippo Ferrario and colleagues published in Nature Communications in 2014 found that coral reefs reduce wave energy by an average of about 97 percent, with the reef crest alone accounting for most of that reduction, protecting shorelines, beaches and towns from erosion and storm damage. Reef fisheries feed hundreds of millions of people in the tropics, and reef tourism supports diving, snorkelling and coastal economies from the Caribbean to Southeast Asia. Reef organisms are also sources of new medicines and compounds. Estimates of the total economic value of the world’s reefs vary widely depending on method, from tens of billions to several trillion US dollars per year, but all agree it is very large compared with the small area reefs occupy.
These benefits depend on the reef continuing to function: on corals growing faster than the reef is eroded, on grazers keeping algae in check, on nutrients being recycled and on larvae replenishing damaged areas. Protecting the processes that make reefs work, rather than only individual species, is the central aim of modern reef management.
| Process | Main players | What it does |
|---|---|---|
| Photosynthesis | Zooxanthellae, turf algae, seaweeds | Captures sunlight as food |
| Nutrient recycling | Corals and symbionts, bacteria, sponges | Keeps scarce nutrients on the reef |
| Grazing | Parrotfish, surgeonfish, sea urchins | Keeps algae from overgrowing corals |
| Predation | Groupers, snappers, sharks | Controls prey populations |
| Cleaning and guarding | Cleaner wrasse, Trapezia crabs | Reduces parasites, defends corals |
| Recruitment | Coral larvae, coralline algae | Replaces lost corals |
How do coral reefs get food?
From photosynthesis by algae, plankton caught by corals and nutrients recycled within the reef.
Why are coral reefs so productive in nutrient-poor water?
They recycle nutrients tightly through corals, algae, sponges, bacteria and fish.
What is the sponge loop?
Sponges absorb dissolved organic matter and shed it as detritus that other animals eat.
Do corals eat?
Yes. They catch plankton with stinging tentacles, mostly at night.
How do corals fight each other?
With sweeper tentacles, digestive filaments and by shading neighbours.
What role do fish play on a reef?
They graze algae, control prey, clean other fish and move nutrients.
How do coral reefs protect coastlines?
They reduce wave energy by about 97 percent on average.
What is the biggest threat to how reefs work?
Marine heatwaves that cause bleaching, plus pollution and overfishing.
- Wikipedia: Coral reef; Zooxanthellae; Sponge; Cleaner fish.
- de Goeij, J.M. et al. (2013). Surviving in a marine desert: the sponge loop retains resources within coral reefs. Science 342: 108–110.
- Meyer, J.L., Schultz, E.T. & Helfman, G.S. (1983). Fish schools: an asset to corals. Science 220: 1047–1049.
- De’ath, G. et al. (2012). The 27-year decline of coral cover on the Great Barrier Reef and its causes. PNAS 109: 17995–17999.
- Ferrario, F. et al. (2014). The effectiveness of coral reefs for coastal hazard risk reduction and adaptation. Nature Communications 5: 3794.
- Spalding, M.D., Ravilious, C. & Green, E.P. (2001). World Atlas of Coral Reefs. University of California Press.
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 →