Resin

A viscous, hydrophobic plant secretion produced by specialized cells and exuded upon injury, where it hardens on exposure to air and functions primarily in defense against animals, pathogens, and physical damage.