The egg hatches into a caterpillar, whose main job is to eat and grow rapidly, often consuming its own eggshell first for nutrients.