The human gastrointestinal microbiota functions as an important mediator of diet for host metabolism. To evaluate how consumed diets influence the gut environment, we carried out simultaneous interrogations of distal gut microbiota and metabolites in samples from healthy children in Egypt and the United States. While Egyptian children consumed a Mediterranean diet rich in plant foods, U.S. children consumed a Western diet high in animal protein, fats, and highly processed carbohydrates. Consistent with the consumed diets, Egyptian gut samples were enriched in polysaccharide-degrading microbes and end products of polysaccharide fermentation, and U.S. gut samples were enriched in proteolytic microbes and end products of protein and fat metabolism. Thus, the intestinal microbiota might be selected on the basis of the diets that we consume, which can open opportunities to affect gut health through modulation of gut microbiota with dietary supplementations.