Secondary metabolites can be classified on the basis of chemical structure (for example, having rings, containing a sugar), composition (containing nitrogen or not), their solubility in various solvents, or the pathway by which they are synthesized (, phenylpropanoid, which produces tannins).