The interplay between the microbes that colonize the gut and the human host are the subject of research initiatives. This Insight focuses on the ecological principles that govern microbiota composition; interactions of the microbiota with the immune system and metabolic processes; and genomic tools that can aid in the analysis of microbial communities.