It sometimes seems to go on forever. Your dog circles, scratches, and digs his bed before finally, finally, settling in. What’s that about? Just like humans, dogs have pre-sleep rituals. The circling, scratching, and digging behavior, sometimes called nesting or denning, are instinctive behaviors that date back to when dogs spent their time in the wild, not the comfort of human homes.