Some species can spin silk from glands in their mouth.
Retrieved from Wikipedia CC BY-SA 3.0
The mature larvae spin silk and are fixed at the tip or base of the leaf where pupation takes place.
Retrieved from Wikipedia CC BY-SA 3.0
It will occasionally spin silk over the pupae.
Retrieved from Wikipedia CC BY-SA 3.0
Young larvae spin silk threads and are easily blown by wind to various parts of young leaves and buds.
Retrieved from Wikipedia CC BY-SA 3.0
Caterpillars spin silk prolifically and in comparison to other non-eusocial insects build large and relatively complex structures from the material.
Retrieved from Wikipedia CC BY-SA 3.0