Garlic (in reasonable amounts) can be very helpful with aiding in flea prevention. You will notice a lot of food companies actually put garlic in dog food.

On occasion I sprinkle a bit of garlic powder on my dogs raw meals.