Municipal wastewater treatment plants (WWTPs) use functional microorganisms in activated sludge (AS) to reduce the environmental threat posed by wastewater. In this study, Illumina NovaSeq sequencing of 16S rRNA genes was performed to explore the microbial communities of AS at different stages of the two WWTP projects in Shenzhen, China. Results showed that Proteobacteria, Bacteroidetes, Acidobacteria, Firmicutes, and Nitrospirae were the dominant phyla in all the samples, with Proteobacteria being the most abundant and reaching a maximum proportion of 59.63%. There was no significant difference in biodiversity between the two water plants, but Stage 1 and Stage 2 were significantly different. The Mantel test indicated that nitrate, total nitrogen (TN), chemical oxygen demand (COD), and nutrients were essential factors affecting the bacterial community structure. FAPROTAX analysis emphasized that the leading functional gene families include nitrification, aerobic nitrite oxidation, human pathogens, and phototrophy. This study reveals changes in the community structure of AS in different treatment units of Banxuegang WWTP, which can help engineers to optimize the wastewater treatment process.