Eosinophilic gastritis is characterized by gastrointestinal symptoms accompanied by peripheral eosinophilia. This study aims to explore the association between eosinophilic gastritis and Synaptosome Associated Protein 25 (SNAP25), and provide a new direction for the diagnosis and treatment of eosinophilic gastritis. GSE54043 was downloaded from the gene expression omnibus database. Differentially expressed genes (DEGs) were screened. The functions of common DEGs were annotated by Database for Annotation, Visualization and Integrated Discovery and Metascape. The protein-protein interaction network of common DEGs was obtained by Search Tool for the Retrieval of Interacting Genes and visualized by Cytoscape. Significant modules were identified from the protein-protein interaction network. A total of 186 patients with eosinophilic gastritis were recruited. The clinical data were recorded and the expression levels of CPE, SST, PCSK2, SNAP25, and SYT4 were detected. Pearson chi-square test and Spearman correlation coefficient were used to analyze the relationship between eosinophilic gastritis and related parameters. Univariate and multivariate Logistic regression were used for further analysis. 353 DEGs were presented. The top 10 genes screened by cytoHubb were shown, and Veen diagram figured out 5 mutual genes. Pearson's chi-square test showed that SNAP25 (P < .001) was significantly associated with eosinophilic gastritis. Spearman correlation coefficient showed a significant correlation between eosinophilic gastritis and SNAP25 (ρ = -0.569, P < .001). Univariate logistic regression analysis showed that SNAP25 (OR = 0.046, 95% CI: 0.018-0.116, P < .001) was significantly associated with eosinophilic gastritis. Multivariate logistic regression analysis showed that SNAP25 (OR = 0.024, 95% CI: 0.007-0.075, P < .001) was significantly associated with eosinophilic gastritis. The low expression of SNAP25 gene in eosinophilic gastritis is associated with a higher risk of eosinophilic gastritis.