The eggs then hatch into larvae called caterpillars. These caterpillars eat and eat and eat until on eday they get a "magic" signal. Now they are ready for the big change. The caterpillar turns into a pupa inside a protective cocoon. Inside the cocoon, dramatic changes take place.