Pest-Eliminating Plants
Written by David Rodgers β Updated March 2026
Certain plants repel insects, confuse pests, and lure them away from your crops β here's how to use them strategically in your garden.
Some plants produce volatile compounds, strong scents, or root secretions that genuinely deter certain pests β and strategic placement of these plants can reduce pest pressure meaningfully when combined with other integrated pest management practices. French marigolds (Tagetes patula) release alpha-terthienyl from their roots, a compound toxic to root-knot nematodes β but only after a full season of growing, making them most effective as a cover crop rather than a companion. Basil planted near tomatoes appears to repel thrips and aphids in some studies, though results vary by cultivar. Nasturtiums are among the most reliable trap crops available to home gardeners, drawing aphids away from beans, brassicas, and cucumbers onto sacrificial plants that are then removed and destroyed.
What This Guide Covers
Catnip (Nepeta cataria) contains nepetalactone, which has been shown in laboratory conditions to repel mosquitoes more effectively than DEET β though the effect diminishes rapidly in open-air garden conditions where the compound disperses. Wormwood and tansy contain strong volatile oils that deter a range of insects but can inhibit nearby plant growth, so placement at garden borders rather than between crops is advised. Alliums (onions, garlic, chives) planted near carrots and roses are a reliable companion combination, reducing carrot fly and aphid populations through scent masking. The full guide covers the mechanism behind plant-based pest deterrence, plant-by-pest pairing tables, trap crop strategies, border planting design, and honest notes on what the research actually supports.
A comprehensive, in-depth guide covering plant-by-pest deterrent pairings, trap crop setup and management, border planting strategies, the science behind plant volatiles and root secretions, and zone-by-zone planting calendars is currently in development. Subscribe to the Planting Atlas newsletter to be notified when the full guide publishes.
πΏ Get Seasonal Gardening Tips
New guides, planting reminders, and growing tips β straight to your inbox.
No spam. Unsubscribe anytime.

About the Author
David Rodgers is the Founder & Head Gardener of Planting Atlas. With over 40 years of hands-on gardening experience in Oklahoma's Zone 7 climate, he researches, writes, and personally tests every guide on the site.
David draws from real backyard trials, soil testing, and trusted sources like Oklahoma State University Extension and USDA data to deliver practical, zone-specific advice that actually works.
Read more about David and Planting Atlas βYou might also like
Organic Pest Control
Safe, effective solutions for common garden pests without harsh chemicals.
Common Garden Diseases
Identify and treat powdery mildew, blight, rust, and other plant diseases.
Common Garden Pests
Visual ID charts for 50+ pests β identify by symptom, choose organic controls, and protect your plants.