Shenqu is a fermented product that is widely used in traditional Chinese medicine (TCM) to treat indigestion; however, the microbial strains in the fermentation process are still unknown. The aim of this study was to investigate microbial diversity in Shenqu using different fermentation time periods. DGGE (polymerase chain reaction-denaturing gradient gel electrophoresis) profiles indicated that a strain of Pediococcus acidilactici (band 9) is the predominant bacteria during fermentation and that the predominant fungi were uncultured Rhizopus, Aspergillus oryzae, and Rhizopus oryzae. In addition, pathogenic bacteria, such as Enterobacter cloacae, Klebsiella oxytoca, Erwinia billingiae, and Pantoea vagan were detected in Shenqu. DGGE analysis showed that bacterial and fungal diversity declined over the course of fermentation. This determination of the predominant bacterial and fungal strains responsible for fermentation may contribute to further Shenqu research, such as optimization of the fermentation process.