Coral crabs are small crustaceans that live wedged among the branches of reef-building corals, and the best-studied group, the guard crabs of the family Trapeziidae, are among the most dedicated bodyguards in the ocean. More than 20 species of these crabs spend their entire adult lives inside a single coral colony, feeding on its mucus and defending it from predators in return. The relationship is tight enough that the crabs cannot survive outside their host, and the corals fare measurably worse without them. What looks like a passive hitchhiker turns out to be a surprisingly active partner in keeping reef ecosystems intact.
What Coral Guard Crabs Actually Do
The signature behavior of Trapezia crabs is defense. When a crown-of-thorns sea star, one of the most destructive coral predators on Indo-Pacific reefs, approaches a coral head, the resident crabs go on the offensive. They snip at the sea star’s spines and tube feet, jerk its arms away from the coral surface, and snap their claws. Experiments off the Pacific coast of Panama showed that these crabs can even detect an approaching sea star by chemical cues in the water. When researchers placed a crown-of-thorns inside a sealed transparent bag near the coral, the crabs barely reacted, averaging only about half a defensive response every three minutes. But when the bag was perforated to let chemical signals through, defensive responses jumped roughly eightfold, and direct contact triggered similar levels of aggression.1PubMed. Defense by symbiotic crustacea of host corals elicited by chemical cues from predator
The protection is not symbolic. In controlled field trials, corals that had their symbiont crabs removed were attacked by predators at dramatically higher rates. In one set of experiments, every single coral with its crabs removed suffered predation, compared to roughly a third of corals that still had even a small pair of the guard crab species Trapezia serenei. The amount of coral tissue lost followed the same pattern: undefended corals lost tissue at rates many times higher than those with crab guardians present.2PubMed Central. Species and size diversity in protective services offered by coral guard-crabs This is not a minor bonus. For young corals just a few centimeters across, the presence of even juvenile Trapezia crabs increased survival by about 32% in field experiments.3Marine Ecology Progress Series. Juvenile Trapezia spp. crabs can increase juvenile host coral survival by protection from predation
Living Arrangements Inside a Coral Colony
Trapezia crabs are not solitary drifters. A single coral colony typically hosts a mated pair of one species, with the number of pairs increasing as the coral grows larger. A big Pocillopora head might shelter pairs from several different Trapezia species at once, plus additional juveniles looking for a spot to settle down.4PubMed Central. Species and size diversity in protective services offered by coral guard-crabs The different species coexist partly because they vary in body size, claw shape, and color pattern, which likely reflects differences in the branch spacing and architecture of the corals they occupy.5Current Biology. Coral guard crabs
This pair-bonding lifestyle means each coral colony is essentially a tiny apartment building with long-term tenants. The crabs are so dependent on the coral’s branching structure for shelter, and on its mucus for food, that removal from the host is essentially a death sentence. It also means the crabs have strong evolutionary incentive to keep their home healthy, since abandoning one coral to find another is rarely an option for an adult.
How Coral Crabs Feed
Guard crabs are not parasites, but they do take a cut. Trapezia bidentata, one of the most common species, is an omnivore that feeds in two main ways: suspension feeding, where it captures tiny particles drifting in the water column, and scraping, where it harvests mucus and small bits of tissue directly from its host coral’s surface. Examination of their mouthparts reveals specialized bristle-like structures on the legs and feeding appendages that form brushes and combs for gathering food from both the water and the coral surface.6Invertebrate Biology. Feeding strategies and habits of the coral guard‐crab Trapezia bidentata
The scraping of coral tissue might sound harmful, and in isolation it would be. But the trade-off is overwhelmingly in the coral’s favor. The amount of tissue a crab consumes is trivial compared to the tissue a coral would lose to a sea star attack without its crab defenders. Think of it as a modest rent payment for round-the-clock security.
Beyond Bodyguard Duty
Defense against predators is the most dramatic service coral crabs provide, but it is not the only one. The constant movement of crabs among a coral’s branches helps clear sediment that settles on the colony. On reefs where sediment loads are high from runoff or wave action, this housekeeping can be the difference between a coral that maintains healthy tissue and one that slowly smothers.
Recent research has shown that these benefits extend even further. A 2025 study found that the presence of Trapezia crabs reduced the amount of tissue corals lost during periods of elevated water temperature and macroalgal overgrowth. Contact with macroalgae, which smothers coral tissue through chemical and physical competition, made tissue loss worse. But having a crab in residence counteracted some of that damage. The researchers described the crabs as buffering the effects of both local stressors like algal contact and global stressors like marine heat waves.7PubMed Central. An abundant mutualist can protect corals from multiple stressors That finding is particularly relevant as reefs worldwide face more frequent bleaching events. A small crab cannot prevent bleaching, but it may slow the cascade of secondary damage that follows.
How Crabs Choose Their Coral
Not every coral gets a crab, and not every crab will accept any coral. Trapezia species are strongly associated with branching corals in the genus Pocillopora, while a related group of coral crabs in the genus Tetralia prefer Acropora corals. Experiments with Tetralia rubridactyla showed that when given a choice between their typical Acropora host, an unusual coral species, and a dead coral skeleton, the crabs overwhelmingly preferred living Acropora. But when no preferred host was available, they would settle for almost anything as a temporary shelter, including dead skeletons and unfamiliar coral species.8ScienceDirect. Host selection and preferences of coral symbiotic crab Tetralia rubridactyla
The hierarchy seems to be: a living preferred host first, because it provides both food and shelter; any living coral second, for at least partial resources; and dead structure as a last resort. Interestingly, within their preferred genus, the crabs did not discriminate between different Acropora species. They were loyal to the general type of coral but not to a single species within that type. This flexibility probably helps them persist on reefs where coral species composition shifts over time, as long as some branching corals survive.
Hidden Diversity and Cryptic Species
For a group of animals that has been studied since the 1800s, coral guard crabs still hold plenty of taxonomic surprises. A genomic study published in 2025 used DNA extracted from both museum specimens and fresh collections to build the most comprehensive family tree of Trapezia to date. The results suggested that the genus might actually need to be split into two separate genera. More strikingly, what scientists had been calling a single widespread species, T. bidentata, turned out to contain at least four genetically distinct clusters. Populations in the Indian Ocean and the remote Marquesas Islands in the central Pacific were so divergent from each other that they likely represent separate species that simply look alike.9PubMed Central. Genomic Insights From Natural History Collections Reveal Cryptic Speciation in Coral Guard Crabs (Family: Trapeziidae)
This kind of hidden diversity matters beyond taxonomy. If different populations of what we have been calling one species are actually several species with different environmental tolerances and ecological roles, then conservation strategies built around a single-species assumption could be missing the mark. A crab population in the Indian Ocean may not respond to reef degradation the same way its Pacific relative does, even though both carry the same name on a species list.
Gall Crabs and Other Coral-Dwelling Relatives
Trapezia guard crabs are the most studied coral crabs, but they are not the only ones living inside reef corals. Gall crabs in the family Cryptochiridae take a very different approach to coral life. Rather than sheltering freely among branches, a female gall crab settles onto a growing coral as a larva and induces the coral to grow a pit or enclosed chamber around her body. She spends her entire adult life inside this gall, filter-feeding from the water that flows through the opening.
Gall crabs are far less conspicuous than guard crabs, but they are widespread. Surveys across 27 Caribbean reef sites found gall crabs on about one in five host coral colonies overall, with three species occupying different coral hosts across depth ranges from 6 to 18 meters.10PubMed. Occurrence patterns of coral-dwelling gall crabs (Cryptochiridae) over depth intervals in the Caribbean Unlike the clear mutualism of Trapezia, the relationship between gall crabs and their hosts is less straightforward. The gall itself diverts some of the coral’s growth, and there is no obvious defensive benefit flowing back to the coral. Most researchers classify gall crabs somewhere between commensals and mild parasites, depending on the species and the degree of tissue disruption the gall causes.
The contrast between guard crabs and gall crabs highlights how the same basic strategy, living inside a coral, can produce very different ecological outcomes. One group pays rent through active defense; the other mostly takes without giving back. Both are obligate coral symbionts, and both face the same existential risk if their host reefs collapse.
What Climate Change Means for Coral Crabs
Because coral crabs cannot live without their hosts, anything that threatens corals threatens them as well. Mass bleaching events, which have become more frequent and severe as ocean temperatures rise, kill the corals that guard crabs depend on for food and shelter. When a Pocillopora colony bleaches and dies, its resident Trapezia pair loses everything: food source, refuge from predators, and the structure needed to raise offspring. On reefs that have experienced severe bleaching, guard crab populations can crash alongside their hosts.
Ocean acidification adds another layer of concern. While the direct effects of acidification on coral crabs have not been studied as extensively as the effects on corals themselves, research on other crab species in acidified water has shown disrupted foraging behavior. Mud crabs exposed to elevated carbon dioxide levels consumed fewer prey, spent less time handling food, and gave up on feeding attempts more quickly.11PubMed Central. Ocean acidification impairs crab foraging behaviour Whether coral guard crabs experience similar behavioral changes is an open question, but the pattern is worrying. If acidification dulls a guard crab’s willingness to confront a sea star, the coral loses its defender even while the crab is still physically present.
There is a bitter irony here. The same crabs that help corals survive local stressors like algal overgrowth and sediment burial are themselves vulnerable to the global stressors they cannot fight. A guard crab can pinch a sea star, but it cannot lower the water temperature.
Why Size Matters in Coral Defense
Not all guard crabs are equally effective protectors. The field experiments that compared different Trapezia species and size classes found clear variation in defensive ability. Larger crab species and larger individuals within a species repelled predators more successfully and allowed less tissue loss on their host corals. Small crabs of Trapezia serenei still provided meaningful protection compared to no crabs at all, but corals hosting the larger species Trapezia punctimanus fared even better, with tissue loss during predation events dropping to a fraction of what undefended corals experienced.12PubMed Central. Species and size diversity in protective services offered by coral guard-crabs
This size gradient has practical implications for coral resilience. A young coral colony that has only managed to recruit a pair of small juvenile crabs is better off than one with no crabs, but it is still more vulnerable than a mature colony hosting a pair of large adults. As coral colonies grow, they can support bigger crab species and more pairs, creating a positive feedback loop: the bigger the coral gets, the better defended it becomes, which helps it get even bigger. Conversely, when reef disturbances shrink coral colonies or kill large individuals, the surviving fragments may only be able to support smaller, less effective crab defenders, making recovery harder.
The Recruitment Problem
One question that remains poorly understood is how juvenile coral crabs find their way to a host in the first place. Adult Trapezia are sedentary, spending their lives in one colony. But their larvae drift in the open water before settling, and somehow they need to locate a suitable living coral among vast stretches of reef, sand, and rubble. The chemical cues that adult crabs use to detect approaching predators hint at the importance of waterborne signals in this system, but the specific settlement cues for larval crabs have received far less attention than those for coral larvae themselves.
Coral larvae, by contrast, are known to respond to chemical gradients from crustose coralline algae and dissolved minerals when choosing where to settle. Whether crab larvae piggyback on similar chemical signals, or whether they use entirely different cues like the smell of their preferred coral species, is an area where research is thin. Given how dependent the crabs are on finding the right host, and how specific some species are about which coral genus they will accept, the recruitment phase is likely a major bottleneck for crab populations on degraded reefs where suitable hosts are scarce.
Coral Crabs as Conservation Indicators
Reef ecologists have increasingly recognized that the health of symbiont communities can serve as a barometer for overall reef condition. A Pocillopora colony with a healthy complement of Trapezia pairs, Alpheus shrimp, and associated invertebrates is a colony embedded in a functioning ecosystem. When those symbionts disappear, either because the coral is too small, too stressed, or too isolated to support them, the colony becomes more vulnerable to the cascade of threats that degrade reefs.
The discovery of cryptic species within Trapezia complicates this picture in a useful way. If what was treated as one widespread generalist species is actually several specialists with different geographic ranges, then monitoring programs that lump all “T. bidentata” together may be masking local declines. A reef that appears to still have guard crabs could be missing the specific lineage best adapted to local conditions. Genomic tools are only now catching up to this problem, and the 2025 phylogenetic study used DNA from museum specimens collected decades ago to establish baseline diversity, making it possible to ask whether certain lineages have already been lost from reefs that have degraded in the interim.13PubMed Central. Genomic Insights From Natural History Collections Reveal Cryptic Speciation in Coral Guard Crabs (Family: Trapeziidae)
In that sense, coral crabs are not just beneficiaries of reef conservation. They are active participants in reef survival and, increasingly, useful tools for understanding how much invisible diversity reefs still hold and how much they have already lost.

