Our study applied metagenomics analysis to examine the impact of biocontrol agents (BAs) on the phyllosphere resistome and the pathogen. Irregular use of antibiotics has led to the escalating dissemination of antibiotic resistance genes (ARGs) in the environment. The majority of BA research has focused on the effect of monospecies on the plant disease control process, the role of the compound BA with nutrition elements in the phyllosphere disease, and the resistome is still unknown. We believe BAs are eco-friendly alternatives for antibiotics to combat the transfer of ARGs. Our results revealed that BA-Mg2+ had a lower relative abundance of ARGs compared to the CK group, and the phyllosphere pathogen Pseudomonas syringae was negatively related to three specific ARGs, cphA3, PME-1, and tcr3. These three genes also present different Ka/Ks. We believe that the identification of the distribution and evolution modes of ARGs further elucidates the ecological role and facilitates the development of BAs, which will attract general interest in this field.