IntroductionThe diversity and dysregulation of intestinal microbiota is related to the pathology of epilepsy. Gut microbiota plays an important role in epilepsy, and regulating intestinal microbiota through exogenous intervention can alleviate symptoms. However, there are no studies about the effects of epilepsy-related diarrhea on gut microbiota.MethodsThe diversity and dysregulation of intestinal microbiota is related to the pathology of epilepsy. Gut microbiota plays an important role in epilepsy, and regulating intestinal microbiota through exogenous intervention can alleviate symptoms. However, there are no studies about the effects of epilepsy-related diarrhea on gut microbiota. To evaluate changes in gut microbiota structure and composition in patients with epilepsy and associated diarrhea, the structure and composition of the fecal microbiota among patients with epilepsy (EP, 13 cases), epilepsy with diarrhea (ED, 13 cases), and probiotic treatments (PT, 13 cases), and healthy controls (CK, seven cases) were investigated and validated by utilizing high-throughput 16S rRNA sequencing.ResultsThe results showed that the α-diversity indexes indicated that richness and phylogenetic diversity had no significant differences among groups. However, the variation of β-diversity indicated that the structure and composition of intestinal microbiota were significantly different among the CK, EP, ED, and PT groups (permutational multivariate analysis of variance, p-value = 0.001). Normalized stochasticity ratio and β-nearest taxon index indicated that stochastic mechanisms exerted increasing influence on community differences with epilepsy and associated diarrhea. ED microbiome alterations include increased Proteobacteria and decreased Actinobacteria and Firmicutes at the phylum level. Bifidobacterium was the core microbe in CK, EP, and PT, whereas it decreased significantly in ED. In contrast, Escherichia/Shigella was the core microbe in CK and ED, whereas it increased significantly in ED (Tukey’s multiple comparisons test, adjusted p-value