← All Articles

Marigolds in Raised Beds: Pest Control That Actually Works Underground and Above

June 29, 2026
companion-plantingraised-bedspest-controltomatoeszone-5

Marigolds aren't just pretty borders. In a raised bed, they're doing real pest control work both above and below the soil surface.

If you've had tomatoes or peppers that just kind of sat there — not dead, not thriving, no obvious reason — the problem might be underground. Root knot nematodes are microscopic pests that attack root systems and choke off nutrient uptake. They don't leave obvious damage. Your plants just look confused and stunted, and you spend weeks chasing a problem you can't see.

Most gardeners plant marigolds because they look nice along the edges. That's fine, but it's leaving most of the value on the table. Marigolds are doing two separate jobs in a raised bed, one underground and one above it, and neither one has anything to do with aesthetics.

Below the soil, marigold roots release a compound called alpha-terthienyl. It interferes with the nervous system and reproduction cycle of root knot nematodes. This isn't folk wisdom — it's the reason marigolds have been used in agricultural pest management for decades. If your beds have any history of stunted plants with no clear cause, this is worth taking seriously.

Above ground, the scent is the mechanism. Plants release volatile compounds, and pests like aphids, whiteflies, and moths use those signals to find and identify your crops. Marigolds mask and scramble those signals. They don't create a force field — pests will still show up — but they reduce the pressure enough to make a real difference, especially around high-value crops like tomatoes.

The mistake most people make is planting marigolds randomly, or just dropping a few at the end of a bed because they had extras. That's not how they work. You need to think about perimeter and proximity. Plant them along tomato rows, not just near them. Put them at bed corners. The goal is coverage — above and below ground — around the plants that matter most to your harvest.

There's also a Denver-specific reason to lean into marigolds over other companion plants. At a mile high, UV is stronger, heat comes on faster, and soil dries out quicker than it would at lower elevations. A lot of companion planting recommendations are written for places that don't have our conditions. Marigolds tolerate heat, handle the UV load, and keep working when other flowers would be struggling to survive. That matters when you're trying to build a system that actually holds up through a Denver summer.

For this season, the practical move is simple: treat marigolds as infrastructure, not decoration. Start them early if you can — they're easy to get going in a hot house or cold frame alongside your tomato transplants — so they're established and doing their job by the time pest pressure picks up in June and July. Plant them at your bed corners and along your tomato rows as a baseline. If you've had nematode problems or unexplained stunting in past seasons, add them closer to the root zones of your most affected crops.

The full walkthrough on how to start marigolds and nasturtiums early in a hot house is in the video above — worth watching if you want to get them in the ground at the right time rather than scrambling for transplants at the nursery in May.

If you want to follow along with what's actually happening in the garden week to week, we share that kind of thing regularly over on Facebook at facebook.com/theurbangardeningneighbor.

← Back to all articles

Watch the video version on YouTube.

Weekly proof-first gardening content from Zone 5b Denver.

Watch on YouTube
Marigolds in Raised Beds: Pest Control That Actually Works Underground and Above | The Urban Gardening Neighbor