Accumulating evidence suggests that high-fat diet (HFD) induced metabolic disorders are associated with dysbiosis of gut microbiota. However, no study has explored the effect of HFD on the gastric microbiota. This study established the HFD animal model to determine the impact of HFD on the gastric microbiota and its relationship with the alterations of gut microbiota. A total of 40 male C57BL/6 mice were randomly allocated to receive a standard chow diet (CD) or HFD for 12 weeks (12CD group and 12HFD group) and 24 weeks (24CD group and 24HFD group) (n = 10 mice per group). Body weight and length were measured and Lee’s index was calculated at different time points. The insulin sensitivity and serum levels of metabolic parameters including blood glucose, insulin and lipid were also evaluated. The gastric mucosa and fecal microbiota of mice were characterized by 16S rRNA gene sequencing. The body weight was much heavier and the Lee’s index was higher in 24HFD group than 12HFD. The insulin resistance and serum level of lipid were increased in 24HFD group compared to 12HFD, indicating the aggravation of metabolic disorders as HFD went on. 16S rRNA gene sequencing showed dysbiosis of gastric microbiota with decreased community diversity while no significant alteration in gut microbiota after 12 weeks of HFD. The phyla Firmicutes and Proteobacteria tended to increase whereas Bacteroidetes and Verrucomicrobia decrease in the gastric microbiota of 12HFD mice compared to 12CD. Moreover, a remarkable reduction of bacteria especially Akkermansia muciniphila, which has beneficial effects on host metabolism, was observed firstly in the stomach of 12HFD group and then in the gut of 24HFD group, indicating the earlier alterations of microbiota in stomach than gut after HFD. We also found structural segregation of microbiota in the stomach as well as gut between 12HFD and 24HFD group, which is accompanied by the aggregation of metabolic disorders. These data suggest that HFD affects not only gut microbiota but also gastric microbiota and the disruption of microbial ecosystem in the digestive tract may play a part in the development and progression of metabolic diseases although molecular mechanism requires further investigation.