The aim of this study was to conduct a thorough scientific investigation into the similarities and differences in the quality of the cellars of different Luzhou-flavor liquor wineries in Yibin production area and the reasons for them. This study analyzed cellar mud samples from five wineries in Yibin production area. The analysis of volatile flavor compounds was carried out using headspace solid-phase microextraction and gas chromatography-mass spectrometry. The bacterial and archaeal community structures and their correlations were analyzed by high-throughput sequencing. The study indicates that the Distillery A had the highest levels of ammonium nitrogen and effective phosphorus, Distillery F had the highest humus levels, and Distillery I had the highest pH levels. The community structure of the principal bacterial and archaeal communities in the five subterranean clays exhibited similarity, and all samples were dominated by Firmicutes as the primary bacterial group. However, there was variation in bacterial abundance. The cellar mud also has obvious regional differences, and there are three genera of differentially dominant archaea in the archaea. In summary, significant differences were observed in the physicochemical indexes of bacterial and archaeal abundance across all five samples. These differences led to variations in both the content and composition of volatile constituents.