Coumarin forms in melilotoside (trans-ortho-coumaric acid glucoside)-containing plant species upon cell damage. In moldy melilotoside-containing plant material, trans-ortho-coumaric acid is converted by fungi to 4-hydroxycoumarin, two molecules of which spontaneously combine with formaldehyde to