Why do caterpillars spin webs?
A caterpillar’s web is its defense against many dangers. For example, despite the hooks on the bottoms of their prolegs, caterpillars can easily be blown off host plants, especially when they are molting. Their sticky webs glue painted lady caterpillars to the leaves they feed on. Also, caterpillars are vulnerable to many predators. Webs help protect them from animals that hunt them for food and from insect parasites looking for caterpillars to host their own larvae.