Various plants (dill, clover, fennel, sweet alyssum) attract parasitic wasps, which can control hornworms by feeding on them.