In this case the worm is big in size, & as compared to other insects, it doesn't have the benefit of camouflage or spines on its body. So a protection measure, it makes the cocoon. read more
The cocoon gives protection to the pupating larva. It helps keep the larva dry, and even with silkworm cocoons, which offer little in the way of camouflage, the cocoon-encased pupa is probably less appetizing to potential predators (mostly birds) than a naked pupa would be. read more
Silkworm Cocoons Silk worms are actually a type of caterpillar that spins silk cocoons around themselves after they turn approximately 1 month old. Whenever they are finally ready to start spinning their cocoon, they will stop eating any food and then they will turn yellowish. read more