1. McFall-Ngai, M. Adaptive immunity: care for the community. Nature 1145, 153 (2007).

2. Sender, R., Fuchs, S. & Milo, R. Are we really vastly outnumbered? Revisiting the ratio of bacterial to host cells in humans. Cell 164, 337–340 (2016).

3. Lennon, J. T. & Jones, S. E. Microbial seed banks: the ecological and evolutionary implications of dormancy. Nat. Rev. Microbiol. 9, 119–130 (2011).

4. Hooper, L. V. & Macpherson, A. J. Immune adaptations that maintain homeostasis with the intestinal microbiota. Nat. Rev. Immunol. 10, 159–169, https://doi.org/10.1038/nri2710 (2010).

5. Backhed, F., Ley, R. E., Sonnenburg, J. L., Peterson, D. A. & Gordon, J. I. Host–bacterial mutualism in the human intestine. Science 307, 1915–1920 (2005).

6. Fuller, M. F. & Reeds, P. J. Nitrogen cycling in the gut. Annu. Rev. Nutr. 18, 385–411 (1998).

7. Walter, J. & Ley, R. The human gut microbiome: ecology and recent evolutionary changes. Annu. Rev. Microbiol. 65, 411–429 (2011).

8. Carmody, R. N. & Turnbaugh, P. J. Gut microbes make for fattier fish. Cell Host Microbe 12, 259–261 (2012).

9. Borgstrom, B., Dahlqvist, A., Lundh, G. & Sjovall, J. Studies of intestinal digestion and absorption in the human. J. Clin. Invest. 36, 1521–1536 (1957).

10. Elser, J. J. et al. Global analysis of nitrogen and phosphorus limitation of primary producers in freshwater, marine and terrestrial ecosystems. Ecol. Lett. 10, 1135–1142 (2007).

11. Gardner, M. L. G. Gastrointestinal absorption of intact proteins. Annu. Rev. Nutr. 8, 329–350 (1988).

12. Ferraris, R. P. & Carey, H. V. Intestinal transport during fasting and malnutrition. Annu. Rev. Nutr. 20, 195–219 (2000).

13. Lilburn, T. G. et al. Nitrogen fixation by symbiotic and free-living spirochetes. Science 292, 2495–2498 (2001).

14. Vecherskii, M. V., Naumova, E. I., Kostina, N. V. & Umarov, M. M. Some specific features of nitrogen fixation in the digestive tract of the European beaver (Castor fiber). Dokl. Biol. Sci. 411, 452–454 (2006).

15. Wostman, B. S. The germ-free animal in nutritional studies. Annu. Rev. Nutr. 1, 257–279 (1981).

16. Sterner, R. W. & Elser, J. J. Ecological Stoichiometry: The Biology of Elements from Molecules to the Biosphere (Princeton Univ. Press, Princeton, 2002).

17. Frost, P. C. & Elser, J. J. Growth response of littoral mayflies to the phosphorus content of their food. Ecol. Lett. 5, 232–240 (2002).

18. Elser, J. J. et al. Growth rate–stoichiometry couplings in diverse biota. Ecol. Lett. 6, 936–943 (2003).

19. Fink, P. & Von Elert, E. Physiological responses to stoichiometric constraints: nutrient limitation and compensatory feeding in a freshwater snail. Oikos 115, 484–494 (2006).

20. Simpson, S. J. & Raubenheimer, D. The Nature of Nutrition: A Unifying Framework from Animal Adaptation to Human Obesity (Princeton Univ. Press, Princeton, 2012).

21. Le Couteur, D. et al. The influence of macronutrients on splanchnic and hepatic lymphocytes in aging mice. J. Gerontol. A Biol. 70, 1499–1507 (2014).

22. Solon-Biet, S. M. et al. Macronutrient balance, reproductive function and lifespan in aging mice. Proc. Natl Acad. Sci. USA 112, 3481–3486 (2015).

23. Holmes, A. J. et al. Diet-microbiome interactions in health are controlled by intestinal nitrogen source constraints. Cell Metab. 25, 140–151 (2017).

24. Zimmerman, A. E., Allison, S. D. & Martiny, A. C. Phylogenetic constraints on elemental stoichiometry and resource allocation in heterotrophic marine bacteria. Environ. Microbiol. 16, 1398–1410 (2013).

25. Mouginot, C. et al. Elemental stoichiometry of Fungi and Bacteria strains from grassland leaf litter. Soil Biol. Biochem. 76, 278–285 (2014).

26. Stephen, A. M. & Cummings, J. H. The microbial contribution to human faecal mass. J. Med. Microbiol. 13, 45–56 (1980).

27. Tjoelker, M. G., Craine, J. M., Wedin, D., Reich, P. B. & Tilman, D. Linking leaf and root trait syndromes among 39 grassland and savannah species. New Phytol. 167, 493–508 (2005).

28. Kartzinel, T. R. et al. DNA metabarcoding illuminates dietary niche partitioning by African large herbivores. Proc. Natl Acad. Sci. USA 112, 8019–8024 (2015).

29. Kleynhans, E. J., Jolles, A. E., Bos, M. & Olff, H. Resource partitioning along multiple niche dimensions in differently sized African savanna grazers. Oikos 120, 591–600 (2011).

30. Müller, D. W. H. et al. Assessing the Jarman–Bell Principle: scaling of intake, digestibility, retention time andgut fill with body mass in mammalian herbivores. Comp. Biochem. Phys. A 164, 129–140 (2013).

31. Hirakawa, H. Coprophagy in leporids and other mammalian herbivores. Mamm. Rev. 31, 61–80 (2001).

32. Kashyap, P. C. et al. Complex interactions among diet, gastrointestinal transit, and gut microbiota in humanized mice. Gastroenterology 144, 967–977 (2013).

33. Reikvam, D. H. et al. Depletion of murine intestinal microbiota: effects on gut mucosa and epithelial gene expression. PLoS ONE 6, e17996 (2011).

34. Wlodarska, M. et al. Antibiotic treatment alters the colonic mucus layer and predisposes the host to exacerbated Citrobacter rodentium-induced colitis. Infect. Immun. 79, 1536–1545 (2011).

35. Johansson, M. E. et al. The inner of the two Muc2 mucin-dependent mucus layers in colon is devoid of bacteria. Proc. Natl Acad. Sci. USA 105, 15064–15069 (2008).

36. Johansson, M. E. et al. Normalization of host intestinal mucus layers requires long-term microbial colonization. Cell Host. Microbe 18, 582–592 (2015).

37. Li, H. et al. The outer mucus layer hosts a distinct intestinal microbial niche. Nat. Commun. 6, 3292 (2015).

38. Berry, D. et al. Host-compound foraging by intestinal microbiota revealed by single-cell stable isotope probing. Proc. Natl Acad. Sci USA 110, 4720–4725 (2013).

39. Tailford, L. E., Crost, E. H., Kavanaugh, D. & Juge, N. Mucin glycan foraging in the human gut microbiome. Front. Genet. 6, 81 (2015).

40. Ley, R. E., Lozupone, C. A., Hamady, M., Knight, R. & Gordon, J. I. Worlds within worlds: evolution of the vertebrate gut microbiota. Nat. Rev. Microbiol. 6, 776–788 (2008).

41. den Besten, G. et al. The role of short-chain fatty acids in the interplay between diet, gut microbiotaand host energy metabolism. J. Lipid Res. 54, 2325–2340 (2013).

42. Koropatkin, N. M., Cameron, E. A. & Martens, E. C. How glycan metabolism shapes the human gut microbiota. Nat. Rev. Microbiol. 10, 323–335 (2012).

43. Carey, H. V., Walters, W. A. & Knight, R. Seasonal restructuring of the ground squirrel gut microbiota over the annual hibernation cycle. Am. J. Physiol. Regul. Integ. Comp. Physiol. 304, R33–R42 (2013).

44. Costello, E. K., Gordon, J. I., Secor, S. M. & Knight, R. Postprandial remodeling of the gut microbiota in Burmese pythons. ISME J. 4, 1375–1385 (2010).

45. McFall-Ngai, M. et al. Animals in a bacterial world, a new imperative for the life sciences. Proc. Natl Acad. Sci. USA 110, 3229–3236 (2013).

46. Cho, I. et al. Antibiotics in early life alter the murine colonic microbiome and adiposity. Nature 488, 621–626 (2012).

47. Foster, K. R., Schluter, J., Coyte, K. Z. & Rakoff-Nahoum, S. The evolution of the host microbiome as an ecosystem on a leash. Nature 548, 43–51 (2017).

48. Kaspari, M. & Powers, J. S. Biogeochemistry and geographical ecology: embracing all twenty-five elements required to build organisms. Am. Nat. 188, S62–S73 (2016).

49. David, L. A. et al. Diet rapidly and reproducibly alters the human gut microbiome. Nature 505, 559–563 (2014).

50. Scott, K. P., Gratz, S. W., Sheridan, P. O., Flint, H. J. & Duncan, S. H. The influence of diet on the gut microbiota. Pharmacol. Res. 69, 52–60 (2013).

51. Smith, V. H., Tilman, G. D. & Nekola, J. C. Eutrophication: impacts of excess nutrient inputs on freshwater, marine and terrestrial ecosystems. Environ. Pollut. 100, 179–196 (1999).

52. Stevens, C. E. & Hume, I. D. Comparative Physiology of the Vertebrate Digestive System 2nd edn (Cambridge Univ. Press, Cambridge, 1995).

53. Pérez, W., Lima, M. & Clauss, M. Gross anatomicy of the intestine in the giraffe (Giraffa camelopardalis). Anat. Histol. Embryol. 38, 432–435 (2009).

54. Kararli, T. T. Comparison of the gastrointestinal anatomicy, physiology and biochemistry of humans and commonly used laboratory animals. Biopharm. Drug Dispos. 16, 351–380 (1995).

55. Aust, G. et al. Mice overexpressing CD97 in intestinal epithelial cells provide a unique model for mammalian postnatal intestinal cylindrical growth. MBoC 24, 2256–2268 (2013).

56. Ley, R. E. et al. Evolution of mammals and their gut microbes. Science 320, 1647–1651 (2008).

57. Bergström, A. et al. Introducing GUt Low-Density Array (GULDA) – a validated approach for qPCR-based intestinal microbial community analysis. FEMS Microbiol. Lett. 337, 38–47 (2012).

58. Taberlet, P. et al. Power and limitations of the chloroplast trnL (UAA) intron for plant DNA barcoding. Nucleic Acids Res. 3, e14 (2007).

59. De Barba, M. et al. DNA metabarcoding multiplexing and validation of data accuracy for diet assessment: application to omnivorous diet. Mol. Ecol. Resour. 14, 306–323 (2014).

60. Cerling, T. E., Harris, J. M. & Passey, B. H. Diets of East African Bovidae based on stable isotope analysis. J. Mammal. 84, 456–470 (2003).

61. Frank, J. A. et al. Critical evaluation of two primers commonly used for amplification of bacterial 16S rRNA genes. Appl. Environ. Microb. 74, 2461–2470 (2008).

62. Rettedal, E. A., Gumpert, H. & Sommer, M. O. Cultivation-based multiplex phenotyping of human gut microbiota allows targeted recovery of previously uncultured bacteria. Nat. Commun. 5, 4714 (2014).

63. Caporaso, J. G. et al. Global patterns of 16S rRNA diversity at a depth of millions of sequences per sample. Proc. Natl Acad. Sci. USA 108, 4516–4522 (2011).

64. Caporaso, J. G. et al. Ultra-high-throughput microbial community analysis on the Illumina HiSeq and MiSeq platforms. ISME J. 6, 1621–1624 (2012).

65. Maurice, C. F., Haiser, H. J. & Turnbaugh, P. J. Xenobiotics shape the physiology and gene expression of the active human gut microbiome. Cell 152, 39–50 (2013).

66. Bates, D., Maechler, M., Bolker, B. & Walker, S. Fitting linear mixed-effects models using lme4. J. Stat. Softw. 67, 1–48 (2015).

67. Park, S. W. et al. The protein disulphide isomerase AGR2 is essential for production of intestinal mucus. Proc. Natl Acad. Sci. USA 106, 6950–6955 (2009).

68. McClatchy, D. B., Dong, M.-Q., Wu, C. C., Venable, J. D. & Yates, J. R. III 15N metabolic labelling of mammalian tissue with slow protein turnover. J.Proteome Res. 6, 2005–2010 (2007).

69. McClatchy, D. B., Liao, L., Park, S. K., Venable, J. D. & Yates, J. R. III Quantification of the synaptosomal proteome of the rat cerebellum during post-natal development. Genome Res. 17, 1378–1388 (2007).

70. Franks, A. H. et al. Variations of bacterial populations in human faeces measured by fluorescent in situ hybridization with group-specific 16S rRNA-targeted oligonucleotide probes. Appl. Environ. Microbiol. 64, 3336–3345 (1998).

71. Manz, W., Amann, R., Ludwig, W., Vancanneyt, M. & Schleifer, K. H. Application of a suite of 16S rRNA-specific oligonucleotide probes designed to investigate bacteria of the phylum Cytophaga–Flavobacter–Bacteroides in the natural environment. Microbiology 142, 1097–1106 (1996).

72. Daims, H., Stoecker, K. & Wagner, M. in Molecular Microbial Ecology (eds Osborn, M. & Smith, C) Ch. 9 (Taylor & Francis, London, 2004).