Evolution and dietary habits interact and determine the composition of bacteria in the digestive tract. Many microorganisms in the intestine seem to have developed in sync with their host animals over millions of years.