Do caterpillars hide somewhere at night?

Do caterpillars hide somewhere at night?

When getting ready for pupation, the full-grown caterpillars usually wander off the plant some distance to find a place to make their chrysalis. During the feeding and growth stage, they just remain under leaves at night.