Bombyx mori their lifecycle, and enclose themselves in a cocoon made up of raw silk produced by the salivary glands. The final molt from larva to pupa takes place within the cocoon, which provides a vital layer of protection during the vulnerable, almost motionless pupal state. Many other Lepidoptera produce cocoons, but only a few—the Bombycidae, in particular the genus "Bombyx", and the Saturniidae, in particular the genus "Antheraea"—have been exploited for fabric production. If the animal is allowed to survive after spinning its cocoon and through the pupal phase of its lifecycle, it releases proteolytic enzymes to make a hole in
Bombyx mandarina true or mulberry silkmoths. The origin of the domesticated silkmoth is enigmatic. It has been suggested that it is the survivor of an extinct species which diverged from the ancestors of "Bombyx mandarina" millions of years ago. However, this is based on an untenable molecular clock hypothesis that assumes that wild and domestic silkmoths evolved equally fast after their lineages diverged. Rather, the effects of artificial selection have accelerated evolution in the domestic form to a point where it is hard to trace the origin of the numerous breeds of domestic silkworms even with the most modern molecular phylogeny methods.