Basil it good for keeping bugs off other plants. I cut the tops off when they're going to seed and scatter them around my veggie garden, or in pots.

.