Defence against herbivory
When a herbivore eats, it eats plants that do not mount a sufficient defensive response. This creates the opportunity for plants which can mount a defence. So plants with defences become the more common. In cases where this relationship demonstrates specificity (the evolution of each trait is due to the other), and reciprocity (both traits evolve), the species are thought to have co-evolved.