Bacillus subtilis is a soil bacterium that, when it colonises the roots or the leaf surface, produces compounds that inhibit the growth of disease-causing fungi and bacteria.
It is sold as a biofungicide in powder or liquid form. It is applied in the watering or as a spray; check the label to see which products it can be mixed with.

