Defence against herbivory

Defence against herbivory describes plant defences to avoid being eaten. There are many adaptations which improve the survival and reproduction of plants by reducing the effect of herbivores.
Many plants produce chemicals which change the behaviour, growth, or survival of herbivores. These chemical defences can act as repellents or toxins to herbivores, or reduce plant digestibility. Some plants, known as hyperaccumulators, specialise in storing heavy metals which are toxic to animals.
Some plants encourage the presence of natural enemies of herbivores, which in turn protect the plant. Some plants provide a home for ants which defend the plant strongly.
Other defensive strategies used by plants include escaping or avoiding herbivores in time or in place. They may grow where plants are not easily found or got at by herbivores. They may grow when herbivores are not around. Herbivores may get diverted towards non-essential parts, or a plant may be able to recover from the damage caused by herbivory.
Each type of defence can be either "constitutive" (always present in the plant), or "induced" (produced in reaction to damage or stress caused by herbivores). Plants can and do react to damage.
Historically, insects have been the most significant herbivores, especially the larvae of insects. The evolution of land plants is closely associated with the evolution of insects. While most plant defences are directed against insects, other defences have evolved that are aimed at vertebrate herbivores, such as birds and mammals.
The study of plant defences against herbivory is important, not only from an evolutionary viewpoint, but also because these defences can be used in agriculture, including human and livestock food sources.
Specific chemical defences.
Plant chemicals have evolved to affect insects. Some of these biochemical pathways exist in vertebrates, including humans. Many pharmaceuticals are got from the chemicals plants use to protect themselves from herbivores. Examples are opium, aspirin, cocaine, and atropine.
Pyrrolizidine alkaloids are produced by plants as a defence mechanism against insect herbivores. More than 660 PAs and PA N-oxides have been identified in over 6,000 plants. About half of them exhibit hepatotoxicity, that is, they attack liver function.
Evolution of defensive traits.
The earliest land plants evolved from aquatic plants around 450 million years ago (mya) in the Ordovician period. These early land plants had no vascular tissue and needed free water for their reproduction. Vascular plants appeared later and their diversification began in the Devonian era (about 400 mya). They had adaptations such as protective coating to reduce evaporation from their tissues.
Reproduction and dispersal of vascular plants in these dry conditions was got by the evolution of specialized seed structures. The diversification of flowering plants (angiosperms) during the Cretaceous period is associated with a sudden burst of speciation in insects. This diversification of insects represented a major selective force in plant evolution. It led to the selection of plants that had defensive adaptations. Early insect herbivores bit or chewed vegetation; but the evolution of vascular plants lead to the co-evolution of other forms of herbivory, such as sap-sucking, leaf mining, gall forming and nectar-feeding.
Records of herbivores.
Our understanding of herbivory in geological time comes from three sources: 
Long thought to be a Mesozoic phenomenon, evidence for herbivory is found almost as soon as fossils which could show it. Within under 20 million years of the first fossils of sporangia and stems towards the close of the Silurian, around 420 mya, there is evidence that they were being eaten. Animals fed on the spores of early Devonian plants, and the Rhynie chert also provides evidence that organisms fed on plants using a "pierce and suck" technique. Many plants of this time are preserved with spine-like growths, which may have had a defensive role.
During the ensuing 75 million years, plants evolved a range of more complex organs – from roots to seeds. There was a gap of 50 to 100 million years between each organ evolving, and it being fed upon. Hole feeding and skeletonization are recorded in the early Permian, with surface fluid feeding evolving by the end of that period.
Co-evolution.
Herbivores depend on plants for food, and have evolved mechanisms to get this food despite the evolution of many plant defences. Herbivore adaptations to plant defence have been likened to "offensive traits". They are adaptations which allow increased feeding and use of a host plant. Relationships between herbivores and their host plants often results in reciprocal evolutionary change, called co-evolution.
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.
The "escape and radiation" mechanism for co-evolution is the idea that adaptations in herbivores and their host plants have been the driving force behind speciation. The adaptations have played a role in the radiation of insect species during the age of angiosperms. Some herbivores have evolved ways to hijack plant defences to their own benefit, by sequestering (keeping) these chemicals and using them to protect themselves from predators.
Plants also need animals.
Most of the plants which defend their leaves so vigorously nevertheless do need animals. Up to 98% of flowering plants in tropical lowland rain forests rely on animals for pollination and seed dispersal.