This study aims to clarify the overlooked functions of heterotrophic nitrification-aerobic denitrification (HNAD) bacteria in a novel anaerobic-swing-anoxic-oxic (ASAO) continuous plug-flow system. The dissolved oxygen (DO) levels and aerated hydraulic retention time (HRT) varied in the swing zones, providing a more diverse redox environment. High nitrogen (85.0 %) and phosphorus (80.0 %) removal were achieved by enriched HNAD bacteria (e.g., Thauera and Malikia) and phosphate accumulating organisms (PAO, e.g., Rhodocyclus and Azonexus) under middle DO level (1.0-2.0 mg/L) and longer aerated HRT (5.0 h). More importantly, microbial network revealed that HNAD bacteria became a connection point for other functional microorganisms associated with pollutant metabolism, and promoted the cooperation and functional evolution of microbial communities. The microbial ecology analysis captured the high importance of homogeneous selection, diffusion restriction, and drift for microbial community assembly in the ASAO system. Among them, HNAD bacteria contributed to both deterministic and stochastic processes, whereas the community assembly of PAO was mainly affected by the deterministic processes. The upregulation of denitrification genes (i.e., napA, napB, nirS, norB and norC) further confirmed the nitrogen removal contribution of aerobic denitrification by HNAD bacteria. Through this study, a comprehensive analysis of microbial interactions in the ASAO system was achieved, providing valuable insights into the targeted regulation of functional microorganisms in wastewater biological treatment processes.