A. Squirrels have a way of digging into the soil to store their food for winter. But here's what you can do to stop Squirrels from digging into your garden. Apply a thick layer of organic materials or leaves to the soil. To get an effective result, top the mulch with some cayenne pepper.