Getting rid of raccoons in a backyard at night means removing the three things that bring them in — food, water and a sheltered route in — then blocking the deck, shed and roofline gaps they use as daytime dens. No single gadget does that on its own; the fix is a short sequence of changes done in the right order.
Raccoons are strong, dexterous and creatures of habit, so they return to a yard that has paid out before. Work through the steps below from the outside in, and expect two to three weeks of consistency before the visits stop.

Step by step
1. Audit the yard after dark
Go out with a torch about an hour after sunset and look for the actual evidence: tipped bins, rolled-back turf, claw marks on fences and latrine spots in corners. Raccoon droppings are often left in a shared latrine and can carry roundworm eggs, so note where they are and don't handle them bare-handed. This one walk tells you which of the next steps matters most in your yard.
2. Lock down every food source
Bins are the number one draw, so use a bin with a locking lid or strap the lid shut with a bungee and bring bins in overnight. Never leave pet food out after dusk, and take bird feeders in at night or fit a baffle and seed tray that catches spill. Windfall fruit, compost and outdoor pet bowls all count as food, so clear them as part of the same sweep.
3. Close off the den and entry routes
Check under decks, sheds and porches for gaps wider than about 10 cm, plus any loose fascia board near the roofline. Seal these with galvanised mesh or a rigid mesh panel rather than foam or loose boards a raccoon can pull away. Before you close a gap, confirm nothing is inside, or you will trap an animal under the deck.
4. Break the grub and turf habit
Raccoons roll back lawns to eat chafer grubs and earthworms, so patchy, spongy turf is a standing invitation. Treat the grub problem with a nematode product applied to damp soil in the right season, and re-seed bare patches so the lawn stops looking like a digging site. This step is slow but it removes the nightly reward that trains a raccoon to keep coming back.
5. Add deterrents as reinforcement, not a cure
Motion-activated lights, a sprinkler that fires on movement and an ultrasonic unit can all startle a raccoon, but they only work while the animal is still wary of them. Move or rotate devices every few nights, because raccoons habituate quickly to anything predictable. Use deterrents to buy time while the exclusion work in steps 2 and 3 takes effect.
6. Trap or call in help if it persists
If a raccoon is living in the structure rather than just visiting, a live trap baited with a strong-smelling food can work — but check local rules first, since relocation and release are restricted or banned in many areas. For a den with young, or an animal inside a roof space, a licensed wildlife removal service is the safer and often faster route. Don't use poison: it is illegal for raccoons in most places and creates a worse problem.
Gear that makes this easier
| Product | What it solves | Best for | Verdict |
|---|---|---|---|
| Locking bin straps and lid latches | Bins tipped and raided overnight | Anyone in a collection area with kerbside bins | Cheapest high-impact fix |
| Galvanised wire mesh roll | Open gaps under decks and sheds | Excluding a den site permanently | Essential, buy by the metre |
| Motion-activated sprinkler | Night visits to lawns and ponds | Yards with a hose point near the damage | Good short-term shock tactic |
| Solar motion-sensor flood light | Dark corners that feel safe to wildlife | Fences, sheds and side returns | Useful, but raccoons adapt |
| Beneficial nematodes for grubs | Lawn rolled back for grubs | Turf with confirmed grub damage | Slow but treats the cause |
| Live cage trap | A single persistent animal | Only where local law allows it | Last resort, check rules first |

Locking bin straps and lid latches
Locking bin straps and lid latches suit anyone whose bin is knocked over or opened on a regular schedule, which is the single most common raccoon complaint. Skip them only if your bins live in a locked store or you compost indoors.
Galvanised wire mesh roll
Galvanised wire mesh roll is for blocking under-deck and shed gaps so a den can't be reoccupied, and it holds up far better than plastic netting. It is not the right pick if you rent and can't fix anything to the structure — talk to the landlord instead.

Motion-activated sprinkler
A motion-activated sprinkler works well for protecting a pond, a veg patch or a freshly seeded lawn where you can reach it with a hose. Skip it if the yard is small, the tap is far away, or you have pets and children out at night.
Solar motion-sensor flood light
A solar motion-sensor flood light fits side returns and fence lines where there's no power and you want an unpredictable burst of light. It won't stop a determined raccoon on its own, so don't buy it as a standalone solution.
Beneficial nematodes for grubs
Beneficial nematodes for grubs are for lawns that get rolled back night after night, and they work best applied to moist soil in the grub's active season. Skip them if you haven't confirmed grubs are present — you'd be watering money into the ground.
Live cage trap
A live cage trap is only for a single animal causing repeated damage, and only after you've checked what your local authority permits. Most people should skip it entirely and call a licensed remover, especially if there could be kits involved.

Common mistakes
- Leaving the bin out with a loose lid — raccoons learn a bin's schedule faster than you'd think.
- Sealing a deck gap without checking for animals inside, which traps them under the structure.
- Relying on one deterrent: lights, sounds and sprinklers all lose effect once the animal gets used to them.
- Using poison or unlicensed relocation, which is illegal for raccoons in many areas and risks harming pets.
- Cleaning a latrine with a dry brush or a household vacuum, which can spread roundworm eggs as dust.
FAQ
What attracts raccoons to my backyard at night?
Food, water and shelter, in that order: bins, pet food, bird seed, windfall fruit, ponds and pet bowls, plus a dry gap under a deck or shed to sleep in. Remove the food and the shelter and the visits usually stop.
Do ultrasonic repellents actually work on raccoons?
Evidence is weak and raccoons adapt quickly to constant sound, so treat them as a minor support at best. Spend the money on bin security and mesh first.
How do I know if a raccoon is living under my deck?
Look for a worn entry path, droppings in a latrine nearby, and scratching or rustling after dark. If you hear young, don't seal the gap — call a licensed remover.
Is it legal to trap and relocate a raccoon?
Rules vary widely and relocation is restricted or banned in many places, so check with your local authority or wildlife agency before buying a trap. In several areas only licensed operators may handle raccoons at all.
How do I clean up raccoon droppings safely?
Wear gloves and a mask, dampen the area first so nothing becomes airborne, and bag the waste for the bin. Disinfect the surface afterwards and never dry-sweep or vacuum the mess.
How long does it take to get raccoons to stop visiting?
Usually two to three weeks of consistent food removal and exclusion, though a resident animal under a deck needs physical exclusion before it will leave. If activity continues past a month, get a professional assessment.
Raccoons are persistent but predictable, and the yards that stay clear are the ones where the bin, the pet bowl and the deck gap were fixed in the same fortnight. Start with food and shelter tonight, add deterrents as backup, and keep the routine going for a few weeks.
As an Amazon Associate we earn from qualifying purchases.
Related guides
Related walkthroughs cover get rid of fleas, remove silverfish and control garden snails. For adjacent jobs, the guides on eliminate fleas, clear mice from walls and remove hornet nests are worth a look.
