Domestication may have had convergent effects on the microbiota of domesticates and humans through analogous ecological shifts. Comparing the gut microbiota of domestic and related wild mammals plus humans and chimpanzees, we found consistent shifts in composition in domestic animals and in humans from industrialized but not traditional societies. Reciprocal diet switches in mice and canids demonstrated that diet played a dominant role in shaping the domestic gut microbiota, with stronger responses in the member of the wild-domestic pair with higher dietary and microbial diversity. Laboratory mice recovered wild-like microbial diversity and responsiveness with experimental colonization. We conclude that domestication and industrialization have similarly impacted the gut microbiota, emphasizing the utility of domestic animal models and diets for understanding host-microbial interactions in rapidly changing environments.