In humans, the gut microbiome is an ecosystem of hundreds to thousands of microbial species living within the gastrointestinal tract, influencing health and even longevity. As interest in studying the microbiome continues to increase, understanding this complexity will give us predictive power to engineer it. A research team built a rigorous mathematical framework that describes the ecology of a microbiome coupled to its host.