The interaction between the mammalian host and its resident gut microbiota is known to license adaptive immune responses. Nutritional constituents strongly influence composition and functional properties of the intestinal microbial communities. Here, we report that omission of a single essential amino acid - tryptophan - from the diet abrogates CNS autoimmunity in a mouse model of multiple sclerosis. Dietary tryptophan restriction results in impaired encephalitogenic T cell responses and is accompanied by a mild intestinal inflammatory response and a profound phenotypic shift of gut microbiota. Protective effects of dietary tryptophan restriction are abrogated in germ-free mice, but are independent of canonical host sensors of intracellular tryptophan metabolites. We conclude that dietary tryptophan restriction alters metabolic properties of gut microbiota, which in turn have an impact on encephalitogenic T cell responses. This link between gut microbiota, dietary tryptophan and adaptive immunity may help to develop therapeutic strategies for protection from autoimmune neuroinflammation.