The microbial ecosystem of fermented food is greatly disturbed by human activities.Jiuyao is important saccharification starter for brewing huangjiu. The interaction between environmental factors and microorganisms significantly affected the microbial community structure at different stages of Jiuyao manufacturing. This study combined environmental factor analysis and high-throughput sequencing technology to comprehensively analyze the specific changes of microbial community and environmental factors in each fermentation stage of Jiuyao production and their correlation. The results showed that the activities of liquefaction enzyme, glycosylation enzyme and acid protease reached the highest value on the 8 th day (192 h) after the beginning of fermentation, and the cellulase activity reached the highest value at the end of fermentation. Pediococcus(37.5 %-58.2 %), Weissella(9.2 %-27.0 %) and Pelomonas(0.1 %-12.1 %) were the main microbial genera in the genus bacteria, and Saccharomycopsis(37.1 %-52.0 %), Rhizopus(12.5 %-31.0 %) and Saccharomyces(4.0 %-20.5 %) were the main microbial genera in the genus fungi. The results of correlation analysis showed that the microbial communities in Jiuyao were closely related to environmental factors. Most microbial communities were positively correlated with temperature, but negatively correlated with ambient humidity, CO2 concentration, acidity and water content of Jiuyao. In addition, the transcription levels of enzymes related to microbial glucose metabolism in Jiuyao were higher in the late stage of Jiuyao fermentation. Interestingly, these enzymes had high transcription levels in fungi such as Saccharomycopsis, Rhizopus and Saccharomyces, as well as in bacteria such as Pediococcus and Lactobacillus. This study provides a reference for revealing the succession rule of microbial community structure caused by environmental factors during the preparation of Jiuyao in Shaoxing Huangjiu.