The gut microbial communities within great apes have been shown to reflect the phylogenetic history of their hosts, indicating codiversification between great apes and their gut microbiota over evolutionary timescales. But because the great apes examined to date represent geographically isolated populations whose diets derive from different sources, it is unclear whether this pattern of codiversification has resulted from a long history of coadaptation between microbes and hosts (heritable factors) or from the ecological and geographic separation among host species (environmental factors). To evaluate the relative influences of heritable and environmental factors on the evolution of the great ape gut microbiota, we assayed the gut communities of sympatric and allopatric populations of chimpanzees, bonobos, and gorillas residing throughout equatorial Africa. Comparisons of these populations revealed that the gut communities of different host species can always be distinguished from one another but that the gut communities of sympatric chimpanzees and gorillas have converged in terms of community composition, sharing on average 53% more bacterial phylotypes than the gut communities of allopatric hosts. Host environment, independent of host genetics and evolutionary history, shaped the distribution of bacterial phylotypes across the Bacteroidetes, Firmicutes, Proteobacteria, and Actinobacteria, the four most common phyla of gut bacteria. Moreover, the specific patterns of phylotype sharing among hosts suggest that chimpanzees living in sympatry with gorillas have acquired bacteria from gorillas. These results indicate that geographic isolation between host species has promoted the evolutionary differentiation of great ape gut bacterial communities.[Supplemental material is available for this article.]The compositions of the gut microbial communities harbored by great apes reflect the phylogeny of their hosts in a manner suggesting that host species and their gut microbiota have codiversified over evolutionary timescales Degnan et al. 2012). This pattern of codiversification between hosts and their gut microbiota could stem from both heritable factors, such as host genetics and the vertical, generation-to-generation transmission of gut microbes (Vaishampayan et al. 2010), and environmental factors, such as host diet and geography (Ley et al. 2008a,b;Turnbaugh et al. 2008Turnbaugh et al. , 2009De Filippo et al. 2010;La Serre et al. 2010;Muegge et al. 2011;Claesson et al. 2012;Yatsunenko et al. 2012). However, because the great ape species sampled to date represent populations that are at once phylogenetically, ecologically, and geographically distinct, it has not been possible to separate the relative influences of heritable and environmental factors on the evolution of the great ape gut microbiota.One approach to parsing the effects of environmental factors on the gut microbiota from those of heritable factors is to compare sympatric (i.e., co-occurring) and allopatric (i.e., geographically separated) host populatio...