The abundance of 26 gastrointestinal microorganisms, such as Allobaculum_stercoricanis, which had a significant negative correlation with brain E, were significantly higher in female mice than those in male mice with Hp-related chronic gastritis (LDA >2 and p < 0.05), of which only 8 kinds of gastrointestinal microbial abundance such as Bacillus_ginsengihumi in female normal mice also significantly higher than those of male normal mice (LDA >2 and p < 0.05). This evidence concerns the gene HP and chronic gastritis.