Marigold flowers emit a smell that deters mosquitoes and other pests. They are also effective in dissuading aphids, thrips, whiteflies, Mexican bean beetles, squash bugs, and tomato hornworms.