The gut-brain axis is a bi-directional integrated system composed by immune, endocrine, and neuronal components by which the gap between the gut microbiota and the brain is significantly impacted. An increasing number of different gut microbial species are now postulated to regulate brain function in health and disease. The westernized diet is hypothesized to be the cause of the current obesity levels in many countries, a major socio-economical health problem. Experimental and epidemiological evidence suggest that the gut microbiota is responsible for significant immunologic, neuronal, and endocrine changes that lead to obesity. We hypothesize that the gut microbiota, and changes associated with diet, affect the gut-brain axis and may possibly contribute to the development of mental illness. In this review, we discuss the links between diet, gut dysbiosis, obesity, and immunologic and neurologic diseases that impact brain function and behavior.