After the larvae of silkmoths feed on the mulberry leaves and grow in size, they secrete a kind of fibrous protein which hardens around it like an enclosure. This silk covering over silkworm is known as a cocoon.
The silk fibre covering over caterpillar is known as cocoon.