Match mature plant size and care needs before choosing neighbors.
Basil prefers warm conditions, good drainage, abundant light and reasonably consistent moisture.
Tomato and basil share a harvest season in many climates and are convenient to pick together.
Peppers are another reasonable neighbor because both crops prefer warmth.
Spring lettuce, small radishes and other quick crops can occupy some garden space before basil has filled out.
That is not the same as proving that a few marigolds beside basil repel aphids, whiteflies or all harmful insects.
Basil growing under fully developed squash leaves or a huge sunflower may receive too little light.
Step-by-step advice, charts and free garden calculators at Garden Voila.