Garlic has a potent flavor and odor, which causes squirrels to steer clear of it.