Sounds like you have a terrier. Even if not, this may help ...
https://www.orivet.com/Terrier_Dogs_Characteristics
If you aren’t out of breath chasing your little terrier to catch him, you’ll find him going through any landscaping you have. While not all terriers are so bad for it, many are absolutely devoted to digging and hiding. They’ll get into all kinds of manic activities, from digging up increasingly large holes in your grass to parading around the place like a guard dog on steroids!
To help your terrier settle in, look to make it a dig pit. This designated area can make sure that it always has somewhere to dig away in without ruining the rest of the location. This can be absolutely vital for making sure you can avoid the predatory nature of your pet, and it’s love of digging up small animals, can be sated a touch.