cThe gut microbiota of termites plays important roles in the symbiotic digestion of lignocellulose. However, the factors shaping the microbial community structure remain poorly understood. Because termites cannot be raised under axenic conditions, we established the closely related cockroach Shelfordella lateralis as a germ-free model to study microbial community assembly and host-microbe interactions. In this study, we determined the composition of the bacterial assemblages in cockroaches inoculated with the gut microbiota of termites and mice using pyrosequencing analysis of their 16S rRNA genes. Although the composition of the xenobiotic communities was influenced by the lineages present in the foreign inocula, their structure resembled that of conventional cockroaches. Bacterial taxa abundant in conventional cockroaches but rare in the foreign inocula, such as Dysgonomonas and Parabacteroides spp., were selectively enriched in the xenobiotic communities. Donor-specific taxa, such as endomicrobia or spirochete lineages restricted to the gut microbiota of termites, however, either were unable to colonize germ-free cockroaches or formed only small populations. The exposure of xenobiotic cockroaches to conventional adults restored their normal microbiota, which indicated that autochthonous lineages outcompete foreign ones. Our results provide experimental proof that the assembly of a complex gut microbiota in insects is deterministic.T ermites and cockroaches play important ecological roles in the turnover of lignocellulose in terrestrial ecosystems (1). These roles depend on the well-regulated nutritional relationships that they have evolved with their gut microbiota over millions of years (2). Compared to the gut microbiota associated with most other model insects, such as fruit flies (3) and bees (4), which are dominated by a few bacterial species, those of termites and cockroaches are considerably more diverse. Previous studies have shown that the composition of their gut microbiota reflects both the common evolutionary origin of and the dietary diversity within this group (5, 6), which makes them excellent models for investigating factors shaping complex gut communities in insects (7).Comparative analyses of the bacterial gut microbiota of termites and cockroaches have revealed that the influence of host taxonomy in community composition is overshadowed by that of host diet (6). A more recent study on higher termites also identified diet as the primary determinant shaping bacterial community structure (8) and hypothesized that differences in diet impact the availability of microhabitats to particular bacterial lineages. These results strongly suggest that the intestinal environment is a strong driver of microbial community structure in termite guts, but the validity of this hypothesis still remains to be experimentally tested.However, termites cannot be raised germ-free because of their obligate dependence on their gut microbiota. Also their elaborate social structure makes them intractable as gnotobiotic m...