Dog owners with green thumbs beware: It's likely just a matter of time before Fido turns your azalea bed into a graveyard of forgotten chew toys. When dogs aren't digging up your prized garden, they can be found digging elsewhere in your yard, at the beach, and even between your couch cushions at home. But what exactly is behind your dog's drive to turn every soft surface he or she sees into an excavation site?

According to Dr. Emma Grigg, an animal behaviorist and co-author of The Science Behind a Happy Dog, this behavior is completely normal. "When people say 'why do dogs dig,' the first thing that always comes to mind is 'well, because they're dogs,'" she tells Mental Floss. The instinct first appeared in dogs' wolf ancestors, then it was amplified in certain breeds through artificial selection. That's why dogs that were bred to hunt rodents, like beagles and terriers, are especially compelled to dig in places where such animals might make their homes.

But this tendency isn't limited to just a few specific breeds. No matter their original roles, dogs of all breeds have been known to kick up some dirt on occasion. Beyond predatory urges, Dr. Grigg says there are two main reasons a dog may want to dig. The first is to cool off on a hot day. When stuck on an open lawn with little to no shade, unearthing a fresh layer of dirt untouched by the sun is a quick way to beat the heat.

The second reason is to stash away goodies. Imagine your dog gets bored with chewing his favorite bone but knows he wants to come back for it later. Instead of leaving it out in the open where anyone can snatch it up, he decides to bury it in a secret place where only he'll be able to find it. Whether or not he'll actually go back for it is a different story. "There's a disconnect with modern dogs: They know the burying part but they don't always know to dig it up," Dr. Grigg says.

Because digging is part of a dog's DNA, punishing your pet for doing so isn't super effective. But that doesn't mean you should stand idly by as your yard gets turned inside-out. When faced with this behavior in your own dog, one option is to redirect it. This can mean allowing him to dig in a designated corner of the yard while keeping other parts off-limits, or setting up a raised flowerbed or sandbox especially to satisfy that urge. "You can get him interested in the area by burying a couple bones or some interesting things in there for him to dig," Dr. Grigg says. "I like the idea of buried treasure."

If your dog's motive for digging is more destructive than practical, he may have an energy problem. Dogs require a certain amount of stimulation each day, and when their humans don't provide it for them they find their own ways to occupy themselves. Sometimes it's by chewing up shoes, toppling trash cans, or digging ditches the perfect size for twisting ankles. Fortunately, this is nothing more walks and playtime can't improve.

Have you got a Big Question you'd like us to answer? If so, let us know by emailing us at bigquestions@mentalfloss.com.