Like humans, insects have their preferred foods, and they usually find these foods by scent.
In addition, some deterrent plants also attractbeneficial insectsyou want in the garden.
This is another pop in of companion planting that is proving to have great use for gardeners.

The Spruce / Evgeniya Vlasova
Borage (Borago officinalis)
Borage repels imported cabbageworm and tomato hornworm.
It also attracts beneficial insects and pollinators, such as nativebumblebees.
Allow it to self-sow, and you will always have some in your garden.

mollypix / Getty Images
Even the beautiful flowers are edible.
Dill (Anethum graveolens)
LauriPatterson / Getty Images
Dill is excellent for repellingcabbage mothsand spider mites.
Planting garlic underrosesto repel Japanese beetles is a classic companion planting technique.

The Spruce / Evgeniya Vlasova
Hyssop (Agastache rupestris)
Rachel Husband / Getty Images
Beautiful, fragrant hyssop repels cabbage moths.
Hyssop is an excellent companion for all sorts ofcole cropssince they are all attacked by cabbage moth larvae.
Or plant pots of mint and place among the veggies to keep the plant contained.

lubilub / Getty Images
The combination of carrots and onions has done well in testing.
Oregano (Origanum)
Luann Griffin / EyeEm / Getty Images
Oregano repels cabbage moths.
However, it can be difficult to interplant because it is a spreading perennial.

Marie Iannotti / The Spruce
Plant in pots and place throughout garden beds instead.
Parsley (Petroselinum)
Parsley repels asparagus beetles.
As with basil, youll need to be gentle when you crush the leaves to release the scent.

pejft / Getty Images
Allow to flower to attract parasitic wasps.
Radish (Raphanus sativus)
Radish plants repel cabbage maggot, squash bugs,cucumber beetles.
Perennial
Sage (Salvia officinalis)
Sage repels cabbage moths and carrot flies.

LauriPatterson / Getty Images
Sage is a perennial plant and can be hard to intercrop but is still useful along the border.
Common sage works best as a deterrent.
Savory (Satureja hortensis)
Savory repels Mexican bean beetles.

Chris Mellor / Getty Images
Summer savory works better than winter savory and is easier to interplant because it is generally grown as anannual.
Thyme (Thymus vulgaris)
Thyme plants repel cabbage moths,corn earworm, and tomato hornworm.
Most thyme plants are low-growing and double as ground covers in the garden.

Rachel Husband / Getty Images
Although they spread, they are slower to fill out than many otherperennial herbs.
It also seems to deter mice.
Place pots near your entryway or in garden beds to keep pests out.

Jenny Dettrick / Getty Images
10, S11, doi:10.1186/1475-2875-10-S1-S11
References
(N.d.).

Marie Iannotti / The Spruce

Luann Griffin / EyeEm / Getty Images

Johner Images / Getty Images

Marie Iannotti / The Spruce

YinYang / Getty Images

Marie Iannotti / The Spruce

EdwardSamuelCornwall / Getty Images

LightFieldStudios / Getty Images

Anchy / Getty Images