https://www.selleckchem.com/products/a2ti-1.html Symbiosis with Symbiodiniaceae has permitted corals to occupy oligotrophic waters as the algae provide most corals with the majority of their nutrition. However, the coral-Symbiodiniaceae symbiosis is sensitive to climate warming, which disrupts this intimate relationship, causing coral bleaching, mortality and a worldwide decline of coral reefs. This article is part of the theme issue 'The role of the microbiome in host evolution'.To survive, plants and animals must continually defend against pathogenic microbes that would invade and disrupt their tissues. Yet they do not attempt to extirpate all microbes. Instead, they tolerate and even encourage the growth of commensal microbes, which compete with pathogens for resources and via direct inhibition. We argue that hosts have evolved to cooperate with commensals in order to enhance the pathogen resistance this competition provides. We briefly describe competition between commensals and pathogens within the host, consider how natural selection might favour hosts that tilt this competition in favour of commensals, and describe examples of extant host traits that may serve this purpose. Finally, we consider ways that this cooperative immunity may have facilitated the adaptive evolution of non-pathogen-related host traits. On the basis of these observations, we argue that pathogen resistance vies with other commensal-provided benefits for being the principal evolutionary advantage provided by the microbiome to host lineages across the tree of life. This article is part of the theme issue 'The role of the microbiome in host evolution'.Every mammalian species harbours a gut microbiota, and variation in the gut microbiota within mammalian species can have profound effects on host phenotypes. In this review, we summarize recent evidence that gut microbiotas have influenced the course of mammalian adaptation and diversification. Associations with gut microbiotas have (i) promot