An example of a pest-resistant crop is maize which is similar to corn. There is a bacterium in the soil which produce a poison that kills insects but it is harmless to people. Putting this bacterium gene into maize plants makes them produce their own poison which kill the pests that eat them.