A Bacillus subtilis strain deposited under deposit number CECT 8258 and a method for protecting or treating plants, plant parts, plant roots or plant seeds from fungal and bacterial infestations, comprising applying a composition comprising the Bacillus subtilis strain deposited under deposit number CECT 8258 or a supernatant obtained from a culture of the Bacillus subtilis strain deposited under deposited number CECT 8258 or an extract isolated from Bacillus subtilis strain deposited under deposited number CECT 8258 to said plants, plant parts, plant roots or plant seeds. Two novel compounds are also disclosed, of formulaand formula