Major mental diseases such as autism, bipolar disorder, schizophrenia, and major depressive disorder are debilitating illnesses with complex etiologies. Recent findings show that the onset and development of these illnesses cannot be well described by the one-gene; one-disease approach. Instead, their clinical presentation is thought to result from the regulative interplay of a large number of genes. Even though the involvement of many genes are likely, up regulating and activation or down regulation and silencing of these genes by the environmental factors play a crucial role in contributing to their pathogenesis. Much of this interplay may be moderated by epigenetic changes. Similar to genetic mutations, epigenetic modifications such as DNA methylation, histone modifications, and RNA interference can influence gene expression and therefore may cause behavioral and neuronal changes observed in mental disorders. Environmental factors such as diet, gut microbiota, and infections have significant role in these epigenetic modifications. Studies show that bioactive nutrients and gut microbiota can alter either DNA methylation and histone signatures through a variety of mechanisms. Indeed, microbes within the human gut may play a significant role in the regulation of various elements of "gut-brain axis," via their influence on inflammatory cytokines and production of antimicrobial peptides that affect the epigenome through their involvement in generating short chain fatty acids, vitamin synthesis, and nutrient absorption. In addition, they may participate in-gut production of many common neurotransmitters. In this review we will consider the potential interactions of diet, gastrointestinal microbiome, inflammation, and epigenetic alterations in psychiatric disorders.