Here is a goal: What can I plant in my garden to repel pests?

How would you accomplish this goal?
Plant a couple venus fly traps. They eat anything that moves near them.