The most reliable way to stop animals from getting under a deck is to install a physical barrier: attach metal mesh (hardware cloth, typically 1/4- to 1/2-inch galvanized steel) around the entire perimeter and extend it outward in an L-shape along or just under the ground so digging animals can't tunnel beneath it. Before you seal anything, however, you must make sure no animals are currently living underneath—trapping them inside creates a worse problem than the one you started with.

Why Animals Are Drawn Under Decks

The space beneath a deck offers almost everything a wild animal looks for in a den site: darkness, shelter from rain and wind, a consistent temperature, protection from predators, and usually a food source nearby in the form of bird feeders, pet food, garbage cans, gardens, or fallen fruit. Common culprits in North America include raccoons, skunks, opossums, groundhogs (woodchucks), foxes, rats, mice, chipmunks, feral cats, snakes, and occasionally coyotes in some regions.

Each species leaves different clues:

  • Raccoons: large, hand-like tracks and scattered trash; active at night.
  • Skunks: a faint musky odor, small conical holes in the lawn from grub digging, and a low, 4- to 6-inch entry gap.
  • Groundhogs: a burrow entrance roughly 8 to 12 inches wide with a mound of excavated dirt outside it.
  • Rats and mice: droppings, gnaw marks, and greasy rub marks along travel paths.
  • Feral cats: no droppings near the den (cats bury them), but shed fur and a distinct odor.

Identifying the resident matters because it affects how you evict them and how robust your barrier needs to be—a mouse fits through a gap the width of a pencil, while a groundhog will simply dig under a shallow fence.

Step 1: Make Sure No Animals Are Home First

This is the step people skip, and it's the one that causes the most trouble. Sealing an entrance with an animal—or worse, a litter of babies—inside leads to the animal dying under your deck, destroying something while trying to escape, or a mother tearing open your new barrier.

Use the newspaper or paper-plug test:

  1. Locate all entry points, not just the obvious one.
  2. Loosely pack each hole with crumpled newspaper, leaves, or a light cloth.
  3. Wait 24 to 48 hours (three days if you suspect a mother with young).
  4. If the plugs are undisturbed, the space is likely empty. If they've been pushed out, an animal is active—try eviction deterrents instead.

To encourage an animal to leave on its own, make the space unpleasant: place a radio tuned to a talk station near the entrance, shine a bright light into the opening during evening hours, and re-soak rags with apple cider vinegar or ammonia near (not blocking) the entry. Never use mothballs outdoors for this purpose—they are pesticides, illegal to use this way in many places, and toxic to children, pets, and wildlife. If you suspect a mother with babies, contact a licensed wildlife removal professional rather than evicting her yourself; separated young almost never survive.

Choosing the Right Barrier Material

Not all mesh is equal, and using the wrong kind is the second most common failure after sealing in an occupant.

  • Hardware cloth (1/4- or 1/2-inch galvanized mesh): the best all-around choice. Rust-resistant, strong enough to stop raccoons, and fine enough to exclude mice with the 1/4-inch size.
  • Welded wire mesh (1x1-inch or 1x2-inch): good for larger animals like groundhogs and foxes; too coarse for rodents.
  • Chicken wire: cheap and easy to work with, but thin enough for raccoons and rodents to chew through or tear. Acceptable only for a temporary fix or when paired with hardware cloth.
  • Solid materials (pressure-treated boards, composite lumber, PVC skirt panels): attractive and effective if installed with no gaps at the bottom—but you must still add a buried mesh apron, because solid skirting does nothing against a digger going under it.

Avoid plastic mesh entirely; rodents chew through it in a night.

How to Install the Barrier Correctly

  1. Dig a shallow trench about 6 to 12 inches deep around the deck perimeter (12 inches in groundhog or fox country).
  2. Create an L-shaped footer: bend the mesh so a 6- to 12-inch section lies horizontally outward at the bottom of the trench. Animals that dig hit the horizontal shelf and give up rather than digging deeper.
  3. Attach the vertical portion to the deck framing, fascia, or posts with exterior screws and fender washers (large washers prevent pull-through). Staples alone will not hold against a raccoon.
  4. Backfill and tamp the soil over the horizontal apron.
  5. Seal every remaining gap: check where the deck meets the house, around posts, at stairs, and at corners. Any gap wider than about a quarter inch is a mouse door.
  6. For stairs, wrap the entire staircase in mesh or enclose the space beneath it—stairs are the most commonly forgotten entry point.

If digging isn't practical—rocky soil, concrete, accessibility issues—lay the mesh flat on the ground extending 12 to 24 inches outward from the deck's edge and secure it with landscape staples or rocks. A digger meets the mesh just below the surface and can't get under it. This "dig-proof apron" works nearly as well as a buried L-footer.

Remove the Things Attracting Them

A barrier stops entry; removing attractants removes the motivation. Both together are far more effective than either alone.

  • Feed pets indoors, or bring food bowls in at dusk.
  • Use garbage cans with locking or weighted lids, and don't put them out the night before pickup.
  • Keep bird seed off the ground with catch trays, or pause feeding during problem periods.
  • Pick up fallen fruit, harvest gardens promptly, and clear fallen bird seed and pet food.
  • Trim vegetation so there's open, visible space around the deck—animals prefer concealed travel routes.

Do Repellents and Gadgets Work?

Honest answer: repellents alone rarely solve an established denning problem. Ultrasonic devices, cayenne pepper, predator urine, and similar products have mixed and inconsistent results—animals habituate quickly, and a mother raising young will tolerate a lot of annoyance. Their proper role is as a short-term eviction aid (as described above) before you seal, not as a permanent solution. Motion-activated sprinklers are among the more effective deterrents for open areas because they deliver a harmless but memorable surprise, but again, they manage behavior rather than physically excluding the animal.

Never attempt to poison, glue-trap, or otherwise harm animals under a deck. Poisoned animals die in inaccessible places, poisons risk killing pets and non-target wildlife, and many species (raccoons, skunks, foxes) are protected by state or provincial rules governing how they may be handled.

When to Call a Professional

Contact a licensed wildlife removal service if:

  • You suspect a mother with babies under the deck.
  • The animal appears sick or behaves strangely—daytime activity in a normally nocturnal species, stumbling, or aggression can indicate disease, including rabies. Do not approach; keep pets inside and call animal control or a wildlife professional.
  • The infestation is large (an established rat colony, for example), since rats require a coordinated exclusion and population-management approach.
  • The animal has died under the deck and you can't reach it.

Skunk removal in particular is a job worth outsourcing to anyone who doesn't want to learn firsthand how far skunk spray travels.

Frequently Asked Questions

What is the best material to put around the bottom of a deck?

Galvanized hardware cloth with 1/4- to 1/2-inch openings is the best overall choice, buried in an L-shape 6 to 12 inches deep. It excludes everything from mice to raccoons and lasts for years outdoors. Chicken wire is cheaper but only suitable for temporary use.

How deep do I need to bury the fence to stop animals digging under?

Six inches deep with a 6- to 12-inch horizontal apron stops most animals, including skunks and raccoons. For strong diggers like groundhogs and foxes, go 12 inches deep. Alternatively, skip digging and lay a 12- to 24-inch mesh apron flat on the soil surface, pinned down.

Will sealing a deck trap animals inside?

Yes—if you seal without checking first. Use the newspaper-plug test: loosely plug every entrance and wait 24 to 48 hours. If the plugs stay put, the space is empty and safe to seal. If they're disturbed, evict the animal first or wait until it leaves on its own.

Does ammonia or mothballs get rid of animals under a deck?

Ammonia-soaked rags placed near (not blocking) the entrance can encourage an animal to relocate, especially combined with light and radio noise. Mothballs should never be used outdoors for wildlife—they are a registered pesticide, illegal to apply this way in many jurisdictions, and dangerous to children, pets, and other wildlife.

How do I keep animals from getting under a deck without digging?

Lay galvanized mesh flat on the ground, extending 12 to 24 inches out from the deck's edge, and secure it with landscape staples, pavers, or a decorative rock border. Any animal that tries to dig meets the mesh immediately below the surface and can't tunnel past it.

What animals commonly live under decks?

The most frequent residents in North America are raccoons, skunks, opossums, groundhogs, feral or stray cats, rats, mice, and—especially in spring and summer—nursing mothers of all of these species. That's why spring and early summer are the seasons when checking for babies before sealing is most critical.