Although exogenous chemicals frequently exhibit a biphasic response in regulating plant growth, characterized by lowdose stimulation and high-dose inhibition, the underlying mechanisms remain elusive. This study demonstrates, for the first time, the compensatory function of rhizosphere microbiota in assisting plants to withstand pesticide stress. It was observed that pak choi plants, in response to foliar-spraying imidacloprid at both low and high doses, could increase the total number of rhizosphere bacteria and enrich numerous beneficial bacteria. These bacteria have capabilities for promoting plant growth and degrading the pesticide, such as Nocardioides, Brevundimonas, and Sphingomonas. The beneficial bacterial communities were recruited by stressed plants through increasing the release of primary metabolites in root exudates, such as amino acids, fatty acids, and lysophosphatidylcholines. At low doses of pesticide application, the microbial compensatory effect overcame pesticide stress, leading to plant growth promotion. However, with high doses of pesticide application, the microbial compensatory effect was insufficient to counteract pesticide stress, resulting in plant growth inhibition. These findings pave the way for designing improved pesticide application strategies and contribute to a better understanding of how rhizosphere microbiota can be used as an ecofriendly approach to mitigate chemical-induced stress in crops.