The present study aimed to investigate the potentiality of certain biocontrol agents, namely Bacillus subtilis, B. pumilus, B. megaterium, Pseudomonas fluorescens, Serratia marcescens, Trichoderma album, T. harzianum and T. viride, as well as the synthetic fungicide difenoconazole to control celery powdery mildew caused by Erysiphe heraclei DC, in vitro (against conidia germination and germ tube length of E. heraclei) and in vivo (against disease severity and AUDPC). In vitro, it was found that the antifungal activity of the tested biocontrol agents significantly reduced the germination percentage of the conidia and germ tube length of the pathogen. The reduction in conidia germination ranged between 88.2% and 59.6% as a result of the treatment with B. subtilis and T. album, respectively compared with 97.1% by the synthetic fungicide difenoconazole. Moreover, the fungicide achieved the highest reduction in germ tube length (92.5%) followed by B. megaterium (82.0%), while T. album was the least effective (62.8%). Spraying celery plants with the tested biocontrol agents in the greenhouse significantly reduced powdery mildew severity, as well as the area under the disease progress curve (AUDPC), after 7, 14, 21 and 28 days of application. In this regard, B. subtilis was the most efficient followed by B. pumilus, S. marcescens and B. megaterium, with 80.1, 74.4, 73.2 and 70.5% reductions in disease severity, respectively. In AUDPC, reductions of those microorganisms were 285.3, 380.9, 396.7 and 431.8, respectively, compared to 1539.1 in the control treatment. On the other hand, the fungicide difenoconazole achieved maximum efficacy in reducing disease severity (84.7%) and lowest AUDPC (219.3) compared to the other treatments. In the field, all the applied biocontrol agents showed high efficiency in suppressing powdery mildew on celery plants, with a significant improvement in growth and yield characteristics. In addition, they caused an increase in the concentration of leaf pigments, and the activities of defense-related enzymes such as peroxidase (PO) and polyphenol oxidase (PPO) and total phenol content (TPC). In conclusion, the results showed the possibility of using tested biocontrol agents as eco-friendly alternatives to protect celery plants against powdery mildew.