Plants have an almost limitless ability to synthesize aromatic substances,
most of which are phenols or their oxygen-substituted derivatives
such as tannins. Most are secondary metabolites, of which at least
12,000 have been isolated, a number estimated to be less than 10%
of the total. In many cases, these substances (esp. alkaloids) serve
as plant defense mechanisms against predation by microorganisms, insects,
and herbivores. Many of the herbs and spices used by humans to season
food yield useful medicinal compounds.