The intestinal microbiota have emerged as a central regulator of host metabolism and immune function, mediating the effects of diet on host health. However, the large diversity and individuality of the gut microbiota have made it difficult to draw conclusions about microbiota responses to dietary interventions. In the light of recent research, certain general patterns are emerging, revealing how the ecology of the gut microbiota profoundly depends on the quality and quantity of dietary carbohydrates and proteins. In this review, I provide an overview of the dependence of microbial ecology in the human colon on diet and how the effects of diet on host health depend partially on the microbiota. Understanding how the individual-specific microbiota respond to short- and long-term dietary changes and how they influence host energy homeostasis will enable targeted interventions to achieve specific outcomes, such as weight loss in obesity or weight gain in malnutrition.