Sludge bulking caused by filamentous bacteria is a prevalent issue in wastewater treatment systems. While previous studies have primarily concentrated on controlling sludge bulking, the biological risks associated with it have been overlooked. This study demonstrates that excessive growth of filamentous bacteria during sludge bulking can significantly increase the abundance of antibiotic resistance genes (ARGs) in activated sludge. Through metagenomic analysis, we identified specific ARGs carried by filamentous bacteria, such as Sphaerotilus and Thiothrix, which are responsible for bulking. Additionally, by examining over 1,000 filamentous bacterial genomes, we discovered a diverse array of ARGs across different filamentous bacteria derived from wastewater treatment systems. Our findings indicate that 74.84% of the filamentous bacteria harbor at least one ARG, with the occurrence frequency of ARGs in these bacteria being approximately 1.5 times higher than that in the overall bacterial population in activated sludge. Furthermore, genomic and metagenomic analyses have shown that the ARGs in filamentous bacteria are closely linked to mobile genetic elements and are frequently found in potentially pathogenic bacteria, highlighting potential risks posed by these filamentous bacteria. These insights enhance our understanding of ARGs in activated sludge and underscore the importance of risk management in wastewater treatment systems.