Both Marigold and Basil smell bad to bugs, so they stay away. Supposedly, rabbits, too. *SHRUG* Marigolds do something good for the nematodes in the garden soil, too.
...putting out a huge container of basil today...wife needs to find some marigolds...