Medicinal plants have been identified and used throughout human history. Plants have the ability to synthesize a wide variety of chemical compounds that are used to perform important biological functions, and to defend against attack from predators such as insects, fungi and herbivorous mammals.