The pathogen Pseudomonas syringae, responsible for a variety of diseases, poses a considerable threat to global crop yields. Emerging biocontrol strategies employ antagonistic microorganisms, utilizing phyllosphere microecology and systemic resistance to combat this disease. However, the interactions between phyllosphere microbial dynamics and the activation of the plant defense system remain poorly understood. Here we show significant alterations in phyllosphere microbiota structure and plant gene expression following the application of biocontrol agents. We reveal enhanced collaboration and integration of Sphingomonas and Methylobacterium within the microbial co-occurrence network. Notably, Sphingomonas inhibits P. syringae by disrupting pathogen chemotaxis and virulence. Additionally, both Sphingomonas and Methylobacterium activate plant defenses by upregulating pathogenesis-related gene expression through abscisic acid, ethylene, jasmonate acid, and salicylic acid signaling pathways. Our results highlighted that biocontrol agents promote plant health, from reconstructing beneficial microbial consortia to enhancing plant immunity. The findings enrich our comprehension of the synergistic interplays between phyllosphere microbiota and plant immunity, offering potential enhancements in biocontrol efficacy for crop protection.