Introduction

Parasitic and mutualistic microbial symbioses exist widely in nature. These interactions occur when microorganisms (that is, bacteria, fungi and viruses) take up residence in or on animals or plants, and cause damage or confer benefits to the host. Parasitic microorganisms (including pathogens) can exploit the host, and in doing so, cause harm. The term mutualist classically refers to any organism in a mutually beneficial relationship with another. However, the assumed benefits are rarely empirically tested for the symbiont1. There is thus an emerging awareness that many putative mutualisms may even be hosts exploiting symbionts2,3,4, in an interaction referred to as inverted parasitism5.

The continuum

The designation of entities as ‘parasite’ or ‘mutualist’ implies a simple binary system whereby species incur positive or negative impacts on fitness during interactions. However, these terms represent ends of a continuum along which an interaction between a host and symbiont can shift. These transitions occur as the relative benefits and costs to each species in the relationship strengthen or weaken (Fig. 1) across ecological or evolutionary time. Transitions can be driven by changes in the environment and ecology of the interacting species or communities. At the centre of the continuum sit commensals, which benefit from the interaction with hosts, but do not cause a detectable cost6.

Fig. 1: Evolutionary transitions onto and along the parasite–mutualist continuum.
figure 1

Examples from nature of microorganisms transitioning from free-living to host-associated lifestyles include the evolution of parasitic species in the Bacillus cereus group (for example, the causative agent of anthrax) from soil-dwelling ancestors237 (part a), and environmental Pantoea bacteria evolving obligate mutualistic roles in stink bug growth and development16 (part b). Examples involving transitions along the continuum are the widespread plant parasite Pseudomonas syringae likely evolving from mutualistic ancestors, driven by horizontal gene transfer (HGT) of type III secretion systems29,79 (part c), and entomopathogens taking over the metabolic role of an ancient and degraded endosymbiont in cicadas165 (part d). Image credits: part a (right) Getty images Smith Collection/Gado.Contributor; part b is adapted from ref.238, CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); part c (left), image courtesey of Gerald Holmes; part c (right) is adapted from ref.239, CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); part d (left), image courtesey of Yu Matsuura; part d (right) adapted with permission from ref.165, PNAS.

The concept of the parasite–mutualist continuum dates back several decades. An early discussion by Ewald7 focused on the fundamental role of transmission route in driving evolutionary transitions between parasitism and mutualism in symbiotic associations. The conditionality of symbiotic interactions was later highlighted by Bronstein8. She reviewed evidence that the costs and benefits of interspecific interactions vary greatly with ecological context, and thus the outcome of a symbiosis can change throughout an organism’s lifetime.

Evolution of microorganisms into parasites or mutualists

Microorganisms can rapidly adapt to new environments. Short generation times, large population sizes and high mutation rates combined with genome flexibility all facilitate accelerated microbial evolution9. Furthermore, their capacity for plastic responses10,11,12 and the dynamic nature of the communities that microorganisms are nested and interact within13,14 provide further routes for changing costs and benefits of association with hosts.

Free-living environmental microorganisms, which do not associate with hosts, were the progenitors for all symbiont diversity observed today15. Free-living microorganisms can evolve to be parasites or mutualists16,17,18,19,20,21. A new host-associated lifestyle often remains facultative for the microorganism22,23, but in some cases the microorganism evolves an obligate dependency on the host24,25. Transitions from free-living to host association are sometimes facilitated by horizontal transfer of genes, often encoding traits that facilitate immediate exploitation of, or benefit to, hosts (for example, immune evasion, toxin production, nitrogen fixation and bioluminescence)15,26. Once associated with a host, symbiotic interactions can shift along the continuum (Fig. 1). For instance, parasites can evolve to be less antagonistic to hosts. Reduced antagonism is thought to be favoured if alternative hosts are rarely available or if transmission of the parasite is enhanced by increases in host fitness27,28. Molecular phylogenetics corroborates this trajectory, showing that parasites have frequently served as progenitors for the independent descent of symbionts that now exhibit mutualistic traits15,29. In this context, microorganisms shifting into novel host taxa is an important process, often forging novel associations on the continuum30,31. Transitions can also occur if a parasite’s own selfish traits benefit a host as a by-product27, or by hosts rewarding32 or capturing33 symbiont genotypes that confer benefits. Conversely, mutualisms can break down into parasitisms. This breakdown can occur owing to the spread of cheater symbionts, which exploit the benefits of host association without paying the cost of returning a benefit27,34. However, shifts from mutualism to parasitism appear rare in nature15,29,35. More frequently, symbionts leave the host-association continuum by reverting to free-living environmental lifestyles, as demonstrated by Actinobacteria abandoning ant hosts15,36.

In this Review, we discuss the evolutionary transitions of host–microorganism symbioses along the parasite–mutualist continuum, the mechanisms underlying evolutionary changes, the selective pressures involved and common empirical approaches for studying them (Box 1). We also briefly discuss context-dependent transitions and the consequences faced by microorganisms when their symbioses are constrained to the extreme ends of the continuum. Moreover, we focus the Review on eukaryotic host–microorganism symbioses; however, we note that microbial interactions with mobile genetic elements (MGEs) can be analogous to symbioses (Box 2) given the ability of these elements to confer beneficial traits and cause harm to bacterial hosts37,38.

Mechanisms of evolution along the continuum

The gradual emergence of microbial mutualists from parasitic ancestors15,29,31,39 and the rapid leaps in symbiont phenotypes observed in real time40,41,42,43,44 provide fascinating insights into the proliferation of microbial symbiotic diversity. The genetic changes involved in microbial evolution are key contributors to the formation of mutualisms and parasitisms and their transitions along the symbiotic continuum. Mechanisms that result in these changes include, for example, selection on existing genetic variation45,46, de novo mutations40,43,47,48,49 and genome rearrangements50,51,52. Genome rearrangements include inversions, duplications, translocations and gene loss50,53,54 (for further discussion of gene loss, see later section, Stuck at the end of the line). Horizontal gene transfer (HGT) events, whereby genetic material moves between organisms in a manner other than vertically, are also important factors in microbial evolutionary transitions42,55,56,57,58. These events often involve MGEs — such as plasmids, transposons, insertion elements and phages — coding for traits that are beneficial or harmful to hosts during their interaction.

Shifts between microbial parasitism and mutualism can involve selection on existing variation. Through experimental evolution of the bacterial symbiont Parachlamydia acanthamoebae and its protist host Acanthamoeba sp., one study46 observed an evolutionary shift of the microbial symbiont towards parasitism under horizontal transmission conditions. The molecular basis of this transition was a pronounced increase in the frequency of specific genetic variants within the original symbiont population, alongside marked changes in the expression of machinery necessary for manipulating host cells, such as the type III secretion system (T3SS).

Selection on de novo mutations in bacterial populations has also been detected in evolution experiments, resulting in movement along the continuum. In these cases, experiments are started by propagating a single clone in hosts. In one study40, a clonal population of Enterococcus faecalis was introduced into nematode host populations, and mutations that arose favoured enhanced production of reactive oxygen species. This phenotype allowed E. faecalis to become highly beneficial to hosts, as production of these antimicrobials suppressed infection by Staphylococcus aureus. A similar direction of travel, but from parasite to commensal, has been observed in nematode host populations by evolving Pseudomonas aeruginosa from a single clone49. Conversely, within the guts of old mice, mutations arising in clones of commensal Escherichia coli may have resulted in evolution towards pathogenicity59. In comparison with evolution within young mice, mutational targets linked to stress-related functions and associated with virulence were under strong selection in the inflamed guts of older mice. Mutation might have a prominent role in transitions when symbionts have a low initial diversity upon colonization. This situation could occur naturally when symbionts have a low infectious dose or when transmission causes population bottlenecks (see section on Transmission below).

Wide-ranging genetic changes — HGT, gene loss and genome rearrangements — have had a profound role in Yersinia pestis becoming more virulent and adapting to new host species50,60,61. Y. pestis is the causative agent of plague in mammalian and arthropod hosts. It is thought to have diverged from its less harmful ancestor Yersinia pseudotuberculosis 1,500–55,000 years ago62,63. Sequencing of isolates of the two species revealed that both HGT and insertion sequence-mediated genome rearrangements and deletions facilitated Y. pestis evolution50,60,61. The bacterium acquired two plasmids, namely pMT1 and pPCP1, making it more virulent compared with its Y. pseudotuberculosis ancestor. The former plasmid carries the ymt gene encoding Yersinia murine toxin, required for the colonization of the flea host64,65, and the capsular antigen fraction 1, which inhibits phagocytosis65,66. These acquisitions contributed to the evolution of Y. pestis towards greater virulence. Adaptation of the parasite to new hosts was mediated by genome rearrangements, particularly via insertion sequences and gene loss. Gene loss was crucial in reducing the toxicity of Y. pestis to the flea vector, allowing biofilm to develop in the flea foregut67. Gene disruption by insertion sequences, in combination with deletion events, point mutations and frameshifts, further created an extensive number of pseudogenes within the Y. pestis genome50,60,61. Altogether, these genetic changes facilitated a shift in lifestyle, from a less harmful mammalian enteropathogen to systemic pathogen of both mammalian and arthropod hosts.

Infection by various phages (mostly lytic, λ-like phages) along with other MGEs facilitated the divergence of the highly pathogenic enterohaemorrhagic E. coli strain O157 Sakai from its ancestor. The commensal E. coli strain K12 is also descended from this common ancestor68. In strain O157 Sakai, prophages and prophage-like elements encode a variety of virulence-related genes — adhesins, tellurite resistance genes and urease — contributing to the acquisition of virulence factors that have determined this bacterium’s trajectory towards increased virulence in humans. One of these elements also encodes the major virulence factor, the locus of enterocyte effacement (LEE), which is responsible for bacterial attachment followed by development of the disease-causing effacing lesions in the intestine69. Lambda-like phages on the Sakai chromosome also encode the destructive Shiga toxin, as well as proteins involved in serum resistance and cell adhesion. Having become integral to the organism’s virulence in this way, the prophages themselves have transitioned from parasitic to mutualistic elements within the O157 Sakai genome (for further discussion of MGEs as symbionts, see Box 2).

How commonly do shifts across the continuum occur owing to de novo mutation or machinery acquired by HGT? Host environments with complex, often open, microbial communities, such as the mammalian gut, might generate more extensive opportunities for HGT70,71,72. For example, phage-driven HGT from the resident community can dictate the evolution of invading strains73 and instigate change more rapidly than is achievable by mutation accumulation74. HGT has had a considerable role in major evolutionary transitions of living organisms; it is increasingly confirmed as a dominant force in the evolution of host–symbiont associations20,29,54,58,65,75,76,77,78,79,80. Yet, for symbionts nested within simple microbial communities (for example, intracellular environments), scarce opportunities for HGT may mean de novo mutation is more likely to underpin shifts along the continuum. Studies reporting selection on de novo mutation during transitions40,49,59 highlight the power of this genetic means to generate remarkable change on the continuum. These experiments typically involve a small number of microbial species and/or low levels of initial genetic diversity upon colonization. When incorporating a host background with an ecologically relevant microbiota, HGT might be more dominant.

Drivers of evolution along the continuum

Ecological sources of selection can drive microbial symbiont evolution towards increasing host benefits (Table 1) or harm (Table 2). Shifts occur across generations as microbial symbionts adapt to life in a new host species, encounter different transmission opportunities and face hosts that reciprocally evolve in response. The presence or absence of additional interacting species in the community can also drive evolutionary change in a host–symbiont relationship owing to changing distribution of net benefits and costs across the community. Essentially, given a strong source of selection, genetic change can occur within just a handful of microbial generations. These transitions are often investigated using experimental evolution or over macro-evolutionary timescales via phylogenetic comparisons (Box 1).

Table 1 Studies reporting evolution of symbioses towards the mutualism end of the continuum
Table 2 Studies reporting evolution of symbioses towards the parasitism end of the continuum

Novel hosts

Microorganisms frequently encounter novel host environments. They can jump across species boundaries or colonize hosts from pools of free-living environmental microorganisms. Novel infections can generate new diversity on the symbiosis continuum through divergence and speciation81. High-profile cases of host shifts, such as the recent SARS-CoV-2 pandemic82, highlight the potential for investigating evolutionary changes in virulence upon emergence83,84,85. New associations are often maladaptive for both host and parasite86, and associations can move unpredictably on the continuum or burn out. This trajectory has been observed in emergences of avian influenza virus, where case fatality rates can be high but human-to-human transmission is low87.

Shifts between host species, possibly driven by HGT of virulence-associated genes, appear to have been important in the emergence of the Q fever parasite, Coxiella burnetii30,88. This proposed mutualist-to-parasite transition is a complex case for which the full evolutionary story remains unknown. However, phylogenetic analysis suggests that this highly infectious bacterium recently emerged from a clade of vertically transmitted mutualistic endosymbionts of ticks30. C. burnetii may have evolved mechanisms to infect vertebrate cells, persist in the environment and be airborne-transmitted. These traits are unlikely to be found in the arthropod-restricted ancestors30. Ticks feeding on vertebrates likely provided the ecological bridge. Similar transitions occurred within Sodalis-allied symbionts, a group of host-restricted bacteria common to insects including the tsetse fly vector. A free-living Sodalis sp. was isolated after a person suffered a wound from a tree branch, and this serendipitous finding provided evidence that symbiont lineages emerged from environmental ancestors31. Early vectoring of these environmental strains by insects was likely pivotal in the evolution of the beneficial, heritable Sodalis endosymbionts observed today.

Novel species interactions can drive rapid innovation. This might particularly be the case if a microorganism bears characteristics that can provide instant benefits. Microorganisms encoding functions of light generation, photosynthesis, nitrogen fixation or antimicrobials may provide such rapid benefits15. These characteristics may be remodelled (or act as pre-adaptations) for transitions in symbiosis15. Such repurposing may have occurred in the antifungal-producing Burkholderia symbionts associated with Lagriinae beetles. Burkholderia symbionts appear to have transitioned from a plant parasite to insect mutualist. In this context, secondary metabolites previously used as virulence factors against plants may have been repurposed for antifungal defence on beetle eggs89. Additional evidence comes from marine hosts, including within the bulbs of anglerfish and the Vibrio fischeri-filled light organs of bobtail squid. These hosts benefit from these bioluminescent bacteria to lure prey and avoid predation, respectively, and the symbionts often retain the capacity to live freely, or persist in the environment22,51.

Transmission opportunities

Transmission mode has been considered to predict the direction of a symbiont’s evolution on the continuum. When horizontally transmitted symbionts can move between unrelated host individuals, the fitness interests between species are uncoupled, a scenario thought to favour parasitism7. The degree of harm caused to hosts from infection is often framed by the virulence–transmission trade-off90,91. The relationship assumes that virulence — the reduction in host fitness caused by parasite infection — is costly to the parasite as host resources are needed for replication92. The cost of harming the host too much or too soon from replication might result in less transmission. Thus, it is predicted that transmission should be highest at intermediate virulence, which balances the costs of within‐host replication and infectious period length90. This model is particularly pertinent for symbionts that rely on a mobile host for transmission (for example, socially transmitted microorganisms). Those that do not (for example, vector- and water-borne microorganisms) can bypass trade-offs between virulence and transmission91. This conventional model goes some way to hypothesizing on general patterns of virulence, yet several extensions and alternatives have been suggested93,94,95.

It has been suggested that mutualists may evolve from parasitic ancestors when the frequency of horizontal transmission routes is reduced or lost7. If vertical transmission is the remaining dominant mode of transmission then the fitness of host and symbiont can become tightly coupled, reducing the arena for evolutionary conflict and thereby favouring selection for mutual benefit7,90,96. Mutualisms involving symbiont inheritance are predicted to be stable on the continuum and unlikely to revert to parasitism15,97. But exclusively vertical transmission can endanger associations via genetic bottlenecking (see section on Stuck at the end of the line). Clearly, becoming inherited is not the sole route by which bacterial mutualists evolve. Comparative analysis has found no evidence for vertical transmission preceding the origin of mutualism15. Many mutualisms involve horizontal transmission such as conjugative plasmids in bacterial populations98 and the vast networks of mycorrhizae that improve plant productivity99,100. In particular, evolution of defensive traits in symbionts are proposed to be facilitated by the genetic diversity and selection for innovation promoted by horizontal transmission101. Many horizontally transmitted microbial symbionts are obligate for host fitness16,22,102, but many can be facultative24 and confer costs in different environments.

Conversely, not all inherited microorganisms become mutualists103. Wolbachia, Spiroplasma and Arsenophonus species are common inherited parasites that manipulate host reproduction, maximizing resource allocation to the transmitting host sex (females) by feminizing hosts or killing their sons104. However, theory suggests that the spread of such reproductive parasites will be enhanced by the evolution of traits that benefit hosts105. A beneficial trait (that is, defence) may even interact with a parasitic trait (that is, reproductive manipulation) to completely exclude a natural enemy105. Indeed, cryptic benefits are now found in several systems106,107, and there is evidence that some reproductive parasites may need to also transmit horizontally just to persist108.

Transmission as a determinant of the location of a symbiosis along the continuum is complex. There are numerous exceptions to classical theory. Nonetheless, experimental manipulation of transmission modes finds general support for the theory that horizontal transmission can select for parasitism and vertical transmission for reduced antagonism (Table 1; Table 2). In a symbiosis between a jellyfish and the alga Symbiodinium microadriaticum, cooperative traits, including growth enhancement, were selected when transmission was restricted to heritable routes109. Such cooperative traits are fundamental for stable mutualisms, protecting against transitions to parasitism or abandonment events. In the reverse experiment, restriction of the alga to horizontal transmission selected for faster proliferation and dispersal (traits associated with parasitism), and declines in host fitness were detected109. Such findings are mirrored across terrestrial systems46,110,111. The common pill bug hosts a Wolbachia strain (wVulC) that feminizes genetic males112. Blocking the typical vertical route, and mimicking horizontal transmission, saw systemic increases in Wolbachia (wVulC) density and a drastic transition from a benign partner to a highly virulent one110.

The community

The drivers of transitions along the parasite–mutualist continuum can be complex and stem from the ecological and evolutionary movements of many different players. Defensive symbiosis113,114, whereby there are at least three interacting species (host, defensive symbiont and an attacking enemy) is particularly dynamic along the continuum in response to community composition changes. The absence of the symbiont or enemy can have evolutionary consequences for other species in the community, even without direct interactions115,116. Co-infections in hosts can also influence transitions in the symbiosis by providing new phenotypes via HGT of genetic material (for example, symbiosis islands, plasmids and phages)78,80,114,117.

The impact of community complexity is demonstrated by the bacterium Hamiltonella defensa and its lysogenic phage, APSE. This association protects host aphids against parasitoid wasps118,119 (Fig. 2). In this context, the fitness benefit afforded to the aphid host is contingent on parasitoid presence — in its absence, H. defensa with APSE phage is costly to the aphid120. The mechanism of protection (toxin production) hinges on the initial lateral transfer of phage from a co-infecting symbiont117,121. Subsequent loss of the phage can move the interaction between H. defensa and aphids back towards parasitism122. Theory105,116, experimental evolution40 and field studies123 have captured how microorganisms, even parasitic ones, can evolve rapidly to protect their hosts when collectively threatened, often crossing the parasite–mutualist continuum in the process. In Caenorhabditis elegans nematodes, a mildly parasitic gut bacterium was shown to evolve an enhanced ability to protect against infection by a more virulent parasite40. In the parasite’s absence, the gut bacterium did not emerge as a microbial line of host defence.

Fig. 2: Transitions in a community context.
figure 2

Defensive symbioses involve multiple species, including a host (H) and defensive microorganism (DM) that protects against an attacking parasite (P)113. Often, hidden players exist within a DM, such as mobile genetic elements (MGEs; for example phages, plasmids and transposable elements) that encode factors involved in the protective function of the DM. In this community, the evolutionary and ecological moves (examples denoted by arrows) of each player can affect the relative position of another on the parasite–mutualist continuum. Players may move, resulting in an overall beneficial (net+), detrimental (net–) or negligible (net 0) effect on host fitness. For example, if a MGE encodes key protective functions, then its loss (move 2) will shift the DM’s position towards parasitism (all cost and no benefit to host). Meanwhile, the costs of P to H will increase now that H is no longer protected by the DM and its MGE. Transitions here can also alter the coevolutionary patterns and processes between players and species.

Additional symbionts, with previously unknown effects, are increasingly being identified even in iconic ‘two-player’ symbioses, such as corals124 and lichens125,126. It is thus not surprising that the complexity of a host’s whole microbiota (which often includes a diverse repertoire of bacteria, fungi and viruses) can interact to produce new outcomes for individual strains, species and the community as a whole. Members of the microbiota compete and cooperate in a myriad of ways127, influencing the virulence of one another via processes such as the suppression of public goods128 or the facilitation of biofilm formation129 and epithelial translocation130. The passage of Candida albicans in mice lacking gut microbiota has highlighted the role of communities in determining fate on the parasite–mutualist continuum. In the absence of a gut microbiota, C. albicans mutants emerge that are defective in hyphal formation, no longer requiring it for competition against other microbiota members. When compared with the wild-type ancestor that coexists with a microbiota, these C. albicans mutants are less virulent and protect their hosts against Aspergillus fumigatus infection in a manner independent of host adaptive immunity43. This transition from pathobiont to conditional mutualist in this context appears to hinge on the absence of competing microorganisms. However, given a gradient of increasing microbiome diversity, it would be valuable to understand when the selective advantage of the transition disappears. Other recent work, in microbiota-free mice, noted that when E. coli is a lone colonizer of the gut, it is consistently selected to increase metabolism of amino acids serine and threonine. A small increase in microbiome diversity (the addition of a single competing species) alters the evolutionary trajectory of E. coli substantially, instead favouring mutations associated with anaerobic metabolism131. This outcome suggests that bacteria may have low fidelity in metabolic function even within a single host generation132. Such a finding suggests host–microbial symbioses may not adhere to the idea of the ‘holobiont’ being a cohesive unit of selection133. This idea relies on high fidelity between partners134, which may easily be disrupted by changes to the surrounding microbial community.

If we can selectively drive the evolution of microorganisms and their communities, applications may improve on the already promising use of faecal microbiota transplants in medicine135, symbiont-mediated vector control136,137 and the manipulation of crop parasites42. There is, however, a pressing need to understand the long-term response of microbial communities to the engineering of symbionts. Recently, theoretical models have treated virulence as a cost shared by all symbionts coexisting in a host138,139. These models find that defence by a symbiont often drives reduced virulence across the microbial community (including in attacking parasites), an outcome dependent on the cost of defence being low and the shared cost of virulence also being low139. However, defensive microorganisms may also select for resistance mechanisms (for example, toxin production and inflammatory stimulation) in the parasites they protect against, causing collateral damage to hosts and driving increased parasite virulence140. This is akin to established predictions for co-infecting parasite species, whereby competition selects for increased virulence141,142,143. Promisingly though, and in line with some theory138,139, selection for reduced parasite virulence has been revealed in response to microorganism-mediated protection144. Others also report long-term efficacy of protection mechanisms despite an evolving pathosphere145.

Host control

Beyond microbial symbiont evolution, hosts can affect the position of the symbiosis on the continuum146. Hosts can be resistant (that is, reducing symbiont colonization) and tolerant (that is, coping with symbiont-associated damage without limiting colonization)147, which reduces any negative impacts of the host–symbiont interaction. Evolving control mechanisms (for example, sanctions and rewards, and microbiome modulators)146,148, or acquiring symbiotic function from an alternative source (for example, symbiont switching and HGT)100 can also limit or cause a change in the position of the interaction along the continuum.

Resistance to symbiont infection is observed ubiquitously across evolving host–parasite associations149,150. Mutations associated with membrane transporters in the bacterium Actinomyces odontolyticus coincided with a reduction in the negative effects of its ectoparasite (Nanosynbacter lyticus)151, perhaps indicating an adaptive host response to block resources to the ectoparasite or prevent its attachment151. As host resistance and tolerance strategies can affect parasitic symbiont fitness, they can counter-adapt152,153. This process may lead to a repeated back and forth along the continuum.

Hosts can also have key roles in restraining symbiont-driven shifts along the continuum. They may act to prevent the emergence of cheating symbionts, which exploit the benefits of host association without paying the cost of returning a benefit27,34. Alternatively, hosts may maintain the association at a position optimal for their own fitness. Sanction and reward strategies, spatial segregation of symbionts and partner choice mechanisms have evolved to promote and maintain cooperation27,154,155. For instance, legumes may sanction defective nitrogen-fixing bacteria by blocking resources to the respective root nodule32,154, and plants reward helpful mycorrhizal fungi with extra carbohydrate156. These mechanisms protect the host from investing in symbionts with net costs and avoid trajectories towards antagonism.

There is mounting theoretical and empirical evidence that many putative mutualisms may actually be a product of hosts exploiting symbionts2,3,4,33. Interactions can benefit the host, but with no reciprocity to the symbiont whose fitness is markedly reduced within the walls of host confinement1. These may be viewed as cases of inverted parasitism5. The host is the parasite of its smaller guest. This phenomenon is exemplified by zooxanthellae in which replication rates are severely compromised by host association4, rising from 3 days outside of coral hosts157 to around 70 days within158. Another example comes from Paramecium bursaria and photosynthetic Chlorella symbionts. Chlorella species provide fixed carbon in return for organic nitrogen, but the host tightly controls symbiont density in response to light conditions, ensuring the best nutrient trade for itself159. Control of the symbiont potentially occurs via digestion of Chlorella cells160. The host may win twofold, paying the workforce only when required and acquiring nutrition via digestion of surplus symbionts. The growth rate for Chlorella remains consistently better outside the host159, but inside, this symbiont avoids algal competitors161 and may be protected against its own parasites162. Research on exploitation by hosts is in its infancy, with the greatest evidence coming from interactions with photosynthetic symbionts4,159,163. Many questions remain, including the ubiquity of the phenomenon and whether some classes of symbiont are more vulnerable to exploitation than others.

Although considered relatively rare over evolutionary time, hosts may also eschew parasitic164 and mutualistic associations100. Fleeing the infectious environment is one strategy. Spatiotemporal escape by asexual rotifers prevents them interacting with fungal parasites consistently over evolutionary time. By drying up and blowing away in the wind, these animals are protected from infection, which allows them to maintain their asexual reproductive strategy164. Mutualistic associations can be abandoned via the recruitment of new symbionts100. As the Hodgkinia endosymbionts of cicadas teetered on the edge of genomic collapse, Ophiocordyceps fungi (commonly parasites) began to take over the essential roles in amino acid synthesis for the host165. Abandonment can also occur via exploitation of an alternative resource100. For example, the evolution of carnivory in plants led to several plant species deserting arbuscular mycorrhizal fungal symbionts, as the plant now gains nutrients directly from prey100. These cases chime with a growing debate over whether hosts can have the upper hand in symbioses, despite generally being the species that evolves more slowly (known as the Red King effect166,167), exploiting and imprisoning their microorganisms to gain disproportionate control and benefit2,3,4,33,159,168.

Context-dependent shifts

The outcome of many microbial interactions with hosts are context dependent14. Both facultative and obligate symbioses can make shifts along the parasite–mutualist continuum that do not involve evolution, often occurring within a generation and driven by ecological change or opportunity (Table 3). Abiotic factors such as temperature169, resource availability170, environmental toxicity171 and the biotic composition of the surrounding community119 or host ontogeny172,173 can all affect the distribution of costs and benefits incurred by the host and microbial symbiont. The position on the continuum can also change if the microbial symbiont becomes infected with its own symbionts (for example, phages and mycoviruses)42,122. Here, we focus on short-term disruptions to host–symbiont associations, but note that sustained alterations to context will feed back to evolutionary change for the interacting species.

Table 3 Examples of context-dependent transitions of symbioses along the mutualist–parasite continuum

Generally, theory predicts that nutrient-limited environments, or other harsh environments, can foster beneficial interactions between compatible players27,174 via mechanisms such as cross-protection and cross-feeding. This outcome has been substantiated by empirical work175,176,177. For symbionts that have nutritional roles (for example, vitamin synthesis and nitrogen fixation), abundant resources can substantially undermine the net benefit gained by the host. The provisioning of mineral nitrogen from fertilizer erases the benefit Bradyrhizobium symbionts provide to legume hosts (Lotus strigosusas) as this acquisition route is less energetically costly for the legume than its symbiont-fixed equivalent178. Some hosts evade context-dependent costs by divesting themselves of associations when ecological conditions change, such as the phytoplankton that abandon their nitrogen-fixing cyanobacteria when environmental nitrogen is abundant179. For host–parasite systems, there is no evidence for a one-way effect of nutrient availability to hosts on the harm caused by infection180. One study180 suggested that the level of parasite virulence in a given environment is likely the result of a balance between the effect of host nutrition on the immune system and on parasite resources.

Temperature can affect symbiont phenotypes181,182, which directly impact symbiont virulence or benefit, such as the regulation of toxin production183 or molecules required for nutrient scavenging184. Some obligate mutualists can constitute thermally ‘weak links’ for hosts, becoming non-functional or even lost from hosts outside adapted temperature ranges, which can have catastrophic consequences for host fitness185,186. Interactions can occur between abiotic and biotic factors. For instance, a 5 °C increase in temperature diminishes H. defensa-mediated defence against parasitoids187,188. This temperature-dependent reduction in defence may be ameliorated if co-infection with an additional bacterium, known as pea aphid X-type symbiont, occurs187.

In other cases, community composition alone can temporarily cause transitions. Defensive symbioses present a clear demonstration of community context-dependent shifts, whereby benefits to the host are contingent on the presence of an enemy species113,114. In the absence of the enemy, the host pays the cost with no detectable benefit, and the association moves towards one that is parasitic114,189. Infection of a symbiont with its own symbionts (that is, hyperparasitism190) can also generate transitions. Recent work found that the devastating effects of a fungal parasite on rapeseed crop are significantly reduced if the fungus becomes infected with mycovirus SsHADV-1 (ref.42). The presence of the mycovirus appeared to affect the expression of a suite of both fungal and crop genes, including those encoding plant cell-wall-degrading enzymes and crop signalling pathways42.

Pathobionts provide an excellent example of context-dependent transitions from neutral to harmful agents191. In a host with a functional immune system and healthy microbiota, pathobionts can exist as commensals191,192,193. Pathobionts are well adapted to proliferate beyond their normal niche. During dysbiosis (for example, compromised immunity, disruption of the microbiota or introduction of medical devices such as catheters or surgical implants) pathobionts can cause disease in a wide variety of forms, from minor infections to more serious chronic or invasive disease194. This ability to transition from harmless to harmful in different contexts makes pathobionts hard to place on the continuum. They are neither consistent parasites nor consistent commensals, with the state of the host generally determining their transition from one to the other.

Stuck at the end of the line

At either end of the continuum lie the extremes of host-killing (or castration) and mutual dependence. What maintains an association here, and what is its future?

The ability to shift along the continuum for some parasitic microorganisms could depend on transmission route. Some infectious agents may stay hypervirulent owing to a high degree of environmental transmission or a lack of reliance on hosts to transmit and propagate. The ‘curse of the Pharoah’ hypothesis195 posits that microorganisms able to ‘sit and wait’ in the environment can be perpetual killers, whereas others suggest that traits that enable persistence in the environment will be traded off with virulence196. There may also be constraints of the parasitic life cycle that prevent a transition. Microbial parasites that must lyse host cells to transmit (for example, lytic phages and Plasmodium species in mammals) or steal resources in a way that castrates the host (Pasteuria bacterial parasite infecting Daphnia magna197) are systems in which transitions away from antagonism are unlikely.

At the opposing end of the continuum lie inherited, obligate endosymbionts, which often have nutritional roles. Although many of these associations are ancient and bestow mutual benefits, they can be risky, particularly for the endosymbiont3,53,198. The genomes of these symbionts can gradually decay as transmission bottlenecks allow deleterious mutations to become fixed by genetic drift, and mutational bias towards deletions removes genes199,200,201,202. Genomic decay can lead to extinction, unless heightened genetic and cellular support is provided by the host203 or other symbionts78,204,205. For example, leafhoppers show gene expression patterns that appear tailored to the deficiencies of each of their endosymbionts’ highly degraded genomes203. In rare cases, symbionts may transition to organelle status206, notoriously achieved by mitochondria and plastids, but this does not guarantee shelter against further gene loss or extinction207,208. Hosts may also avoid extinction alongside an endosymbiont by exploiting alternative nutritional resources or gaining new symbionts158,159.

Conclusions and future perspectives

Plants and animals, including humans, are colonized by innumerable microorganisms. This observation has sparked a revolution in studying the impacts of those microorganisms on host biology and health. Many more examples of microbial evolution causing transitions across the parasite–mutualist continuum will emerge through further research using experimental evolution and investigating the microbiome in an evolutionary context. The potential evolution of species in the human microbiome from good to bad209,210, and the degree to which beneficial interactions could be upset by microbiome perturbation211, are of clinical relevance for individuals vulnerable to infectious disease. In the future, such individuals may benefit from engineering of the microbiome or symbiont communities, via either direct genetic modifications to key transition loci in microbiome members, or exposure to selection sources with known outcomes. This approach has recently been achieved for honeybees, with the genetic modification of a core gut bacterium improving resistance to viral infection212. These are exciting applications, but we must strive to understand the evolutionary consequences for the parasites targeted too.

More fundamentally, understanding causes of transitions will provide insight into the dynamics of how an organism’s biology and its community are shaped by microbial inhabitants. The ecological and evolutionary transitions of other species, as well as environmental change, can alter the scope for conflict in symbioses involving microorganisms. Interest has grown in thinking of host–microorganism symbioses as holobionts with highly aligned selective interests134. Many associations may be also viewed in an ecological community context13,146 in which constant shifts occur back and forth on the parasite–mutualist continuum. The degree to which the host and symbiont, or both, have control over those shifts remains relatively unexplored. Research in the field has focused on the propensity of symbionts to invade unwilling hosts or cheat reciprocal arrangements. Yet an exciting new avenue is emerging, one that is exposing hosts as exploiters and imprisoners of microorganisms33,198. The extent to which microorganisms are able to evolve to counter or take advantage of that exploitation is also unclear.

Moreover, environmental changes have the potential to substantially alter selection in symbiotic interactions213. In addition to altering established symbioses, marked changes to abiotic variables can also move the boundaries of environmental constraint, fostering the evolution of new interactions on the continuum that were previously impossible or profitless. How will the collectively growing impact of humans affect the stability of beneficial associations and the emergence of parasites globally (for example, see refs214,215)? This question is particularly timely given the COVID-19 pandemic. Undoubtedly, as environmental perturbations increase in magnitude and frequency, and as the use of antimicrobials grows, understanding the effects on the real-time evolution of host–symbiont interactions will become more and more valuable.