Tomato hornworms are in the insect order Lepidoptera, which includes all butterflies and moths. They are the immature/larval stage of the five-spotted hawk moth. After growing through 5 to 6 larval instar stages, tomato hornworms pupate in the soil for about 3 weeks before emerging as moths.