Tomato
Grown as a dense block and dug into the bed at season's end, French marigold roots measurably reduce root-knot nematode numbers, which spares tomato roots the following year. A few plants dotted along the edge do not do this, and marigolds do not deter Colorado potato beetles.
Bell Pepper
The open flower heads feed hoverflies, lacewings, and tiny parasitic wasps whose young hunt the aphids that cluster on pepper shoot tips. Keep some blooms un-deadheaded so the nectar supply is steady.
Basil
Both plants like the same warm, well-drained ground, and if you let a few basil spikes and marigold heads flower they can together keep a steady nectar supply for hoverflies and small parasitic wasps through midsummer.
Cucumber
Cucumbers need insects to move pollen between male and female flowers, and a marigold edging in bloom often draws more bees into the bed. Plant it where it will not be shaded out by the vines.
Carrot
The strongly scented foliage can help hide the smell of carrot tops from carrot rust fly, which finds its host by odor. Expect partial help under low pest pressure, not a substitute for a fine mesh row cover.