Accumulating evidence has revealed the gut bacteria dysbiosis and brain hippocampal functional and structural alterations in major depressive disorder (MDD). However, the potential relationship between the gut microbiota and hippocampal function alterations in patients with MDD is still very limited. Data of resting-state functional magnetic resonance imaging were acquired from 44 unmedicated MDD patients and 42 demographically matched healthy controls (HCs). Severn pairs of hippocampus subregions (the bilateral cornu ammonis [CA1-CA3], dentate gyrus (DG), entorhinal cortex, hippocampal–amygdaloid transition area, and subiculum) were selected as the seeds in the functional connectivity (FC) analysis. Additionally, fecal samples of participants were collected and 16S rDNA amplicon sequencing was used to identify the altered relative abundance of gut microbiota. Then, association analysis was conducted to investigate the potential relationships between the abnormal hippocampal subregions FC and microbiome features. Also, the altered hippocampal subregion FC values and gut microbiota levels were used as features separately or together in the support vector machine models distinguishing the MDD patients and HCs. Compared with HCs, patients with MDD exhibited increased FC between the left hippocampus (CA2, CA3 and DG) and right hippocampus (CA2 and CA3), and decreased FC between the right hippocampal CA3 and bilateral posterior cingulate cortex. In addition, we found that the level of proinflammatory bacteria (i.e., Enterobacteriaceae) was significantly increased, whereas the level of short-chain fatty acids producing-bacteria (i.e., Prevotellaceae, Agathobacter and Clostridium) were significantly decreased in MDD patients. Furthermore, FC values of the left hippocampal CA3- right hippocampus (CA2 and CA3) was positively correlated with the relative abundance of Enterobacteriaceae in patients with MDD. Moreover, altered hippocampal FC patterns and gut microbiota level were considered in combination, the best discrimination was obtained (AUC = 0.92). These findings may provide insights into the potential role of gut microbiota in the underlying neuropathology of MDD patients.