Next-generation sequencing provides new insights into the diversity and structure of bacterial communities, as well as the fate of pathogens in wastewater treatment systems. In this study, the bacterial community structure and the presence of pathogenic bacteria in three wastewater treatment plants across Gauteng province in South Africa were studied. The physicochemical results indicated that the quality of wastewater varies considerably from one plant to the others. Proteobacteria, Actinobacteria, Firmicutes, and Chloroflexi were the dominant phyla across the three wastewater treatment plants, while Alphaproteobacteria, Actinobacteria, Bacilli, and Clostridia were the dominant classes. The dominant bacterial functions were highly associated with carbohydrate, energy, and amino acid metabolism. In addition, potential pathogenic bacterial members identified from the influent/effluent samples included Roseomonas, Bacillus, Pseudomonas, Clostridium, Mycobacterium, Methylobacterium, and Aeromonas. The results of linear discriminant analysis (LDA) effect size analysis also confirmed that these bacterial pathogens were significantly abundant in the wastewater treatment systems. Further, the results of this study highlighted that the presence of bacterial pathogens in treated effluent pose a potential contamination risk, transmitted through soil, agriculture, water, or sediments. There is thus a need for continuous monitoring of potential pathogens in wastewater treatment plants (WWTPs) in order to minimize public health risk.