Resin is a hydrocarbon secretion of many plants, particularly coniferous trees. It is valued for its chemical properties and associated uses, such as the production of varnishes, adhesives, and food glazing agents; as an important source of raw materials for organic synthesis; and as constituents of incense and perfume. There is no consensus on why plants secrete resins.

However, resins consist primarily of secondary metabolites or compounds that apparently play no role in the primary physiology of a plant. While some scientists view resins only as waste products, their protective benefits to the plant are widely documented.

The toxic resinous compounds may confound a wide range of herbivores, insects, and pathogens; while the volatile phenolic compounds may attract benefactors such as parasitoids or predators of the herbivores that attack the plant. The hard transparent resins, such as the copals, dammars, mastic and sandarac, are principally used for varnishes and cement, while the softer odoriferous oleo-resins (frankincense, elemi, turpentine, copaiba) and gum resins containing essential oils (ammoniacum, asafoetida, gamboge, myrrh, and scammony) are more largely used for therapeutic purposes and incense.

A dye can generally be described as a colored substance that has an affinity to the substrate to which it is being applied. The dye is generally applied in an aqueous solution, and may require a mordant to improve the fastness of the dye on the fiber. The dyes were obtained from animal, vegetable or mineral origin, with no or very little processing. By far the greatest source- of dyes has been from the plant kingdom, notably roots, berries, bark, leaves and wood, but only a few have ever been used on a commercial scale.