Your dog circles once, scratches the carpet, then curls up for a nap. That brief ritual may be how they arrange a comfortable place. But if they scrape one spot for minutes, tear at the floor, or seem unable to settle, look more closely at what happens around it.
Check for a crumb, spill, or interesting smell in the exact spot. Notice whether the digging starts when they hear something outside, when another pet approaches, or after a busy day. A dog may scratch when excited, worried, or frustrated as well as when simply making a bed. If the behavior is sudden, intense, or paired with pacing, pain, or distress, ask your veterinarian for advice.
Offer an easier place to rest
Give your dog a comfortable bed or washable mat in a calmer area. Let them choose it, reward them for settling there. If the carpet is being damaged, block access to that patch when you cannot supervise and provide a safe digging or foraging activity instead, such as a supervised paper-filled dig box. Make sure they do not eat paper or stuffing.
If they dig only briefly before lying down and nobody is at risk, you may not need a training campaign at all. Protect a delicate rug with a sturdier mat and let your dog get comfortable. If they dig in the same spot but never settle, the scratching is giving you a clue: there may be something in the room, routine, or body that needs attention.
Do not make a startling noise to stop them. You can invite them to another activity, but the useful work is finding a resting place and setup that meets the need behind the digging.
Sources: Vetstreet: Why Does My Dog Dig in the Carpet?. Dogs Trust: How to make a dig box.