Insects can adapt because of a variation or mutation in their gene code that led them to be able to survive the certain insecticide. Once the insect survives to the age that they can reproduce, they mate and create offspring; therefore, spreading that trait or gene to its babies.