The caterpillar completely covers itself by silk fibres and turns into pupa. This covering is known as Cocoon.