If you have a squirrel problem in your garden, there are a few things you can do to keep them from digging up your dirt. First, try to eliminate any potential food sources that may be attracting them to your yard. If you feed birds, make sure the bird seed is contained in a feeder that squirrels can't get into. Keep trash cans securely lidded and pet food bowls inside.
Next, take away their reason for digging by making it difficult for them to get under fences or into other areas they might want to dig up. Place chicken wire just below the soil surface around the perimeter of your property or garden. Bury it about six inches deep and extend it outwards at least two feet. This will create a barrier that squirrels can't dig through.
If you have trees on your property, trim back branches that hang over your fence or garden area. Squirrels use these branches as bridges to access places they wouldn't be able to otherwise. By cutting them back, you'll make it more difficult for them to get where they want to go without being seen.
Finally, set up a live trap baited with peanuts or sunflower seeds and place it in the area where the squirrels have been digging. Once caught, release the squirrels at least two miles away from your home so they don't find their way back!