Resin is a chemical that oozes out of various trees. It is known as a secretion rather than an excretion. Excretions are purely waste products whereas, although the reasons behind resin are still a little obscure, most scientists believe that it has some sort of purpose or function.
No one knows for absolute sure why some trees secrete resin. However, with the aid of some marvelous macrophotography, although the mystery surrounding this subject cannot be solved for certain, its beauty - at times deadly - becomes evident.