Transgenic crops can be created with genes from pathogens to induce resistance when attacked by the same pathogen.