Antibiotics affect bacterial community structure and functions in soil. However, the response and adaptation of root-associated bacterial communities to antibiotic stress remains poorly understood. Here, rhizobox experiments were conducted with maize (Zea mays L.) upon exposure to antibiotics ciprofloxacin or tetracycline. High-throughput sequencing analysis of bacterial community and quantitative PCR analysis of nitrogen cycling genes show that ciprofloxacin and tetracycline significantly shift bacterial community structure in bulk soil, whereas plant host may mitigate the disturbances of antibiotics on bacterial communities in root-associated niches (i.e., rhizosphere and rhizoplane) through the community stabilization. Deterministic assembly, microbial interaction, and keystone species (e.g., Rhizobium and Massilia) of root-associated bacterial communities benefit the community stability compared with those in bulk soil. Meanwhile, the rhizosphere increases antibiotic dissipation, potentially reducing the impacts of antibiotics on root-associated bacterial communities. Furthermore, rhizospheric effects deriving from root exudates alleviate the impacts of antibiotics on the nitrogen cycle (i.e., nitrification, organic nitrogen conversion and denitrification) as confirmed by functional gene quantification, which is largely attributed to the bacterial community stability in rhizosphere. The present study enhances the understanding on the response and adaptation of root-associated bacterial community to antibiotic pollution.