The objectives of this study were to explore the diversity of endophytic fungi associated with traditional Chinese medicinal plants, to screen the isolates obtained for antagonistic activity with the potential to control Bgt, and third to optimize the culture conditions of candidate biocontrol agents to maximize their antifungal activity.