By far the greater number of wasps (over 500,000 species in the superfamily Chalcidoidea alone) are a special type of parasite. They are parasitoids which lay their eggs in or on the bodies of other insect species (usually the larvae such as caterpillars).
Different species specialise in hosts from different insect orders, most often Lepidoptera, though some select beetles, flies, or bugs; the spider wasps (Pompilidae) exclusively attack spiders.