It is not clear how the complex interactions between diet and the intestinal microbiota affect development of mucosal inflammation or inflammatory bowel disease. We investigated interactions between dietary ingredients, nutrients, and the microbiota in specific pathogen-free (SPF) and germ-free (GF) mice given more than 40 unique diets; we quantified individual and synergistic effects of dietary macronutrients and the microbiota on intestinal health and development of colitis.