Sweet basil is a variety that flies seem to hate the most, so grow it in your kitchen window if you have a fly problem and love to cook. The bay leaf, or bay laurel, adds a lovely flavor to soups and other dishes, but the scent will drive most flies away. The scent it gives off isn’t very strong, so it may not always be effective.