Something fascinating about the metamorphosis: in the chrysalis, the caterpillar completely turns into liquid goo. However, it seems the butterfly keeps memories from its caterpillar life.
Here is some "source" I could quickly find on the subject: Butterflies remember caterpillar experiences | New Sientist