This is a list of plants that have been used as herbal medicine . 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.