Transgenic plants producing the bacterial pheromone N-acyl-homoserine lactone exhibit enhanced resistance to the bacterial phytopathogen Erwinia carotovora.