Updated: October 14, 2026

If you have raccoons in my yard, the first job is to make the yard less attractive tonight, not to chase the animal off by hand. Raccoons come where food, water, and shelter are easy to find, and they learn fast when a yard rewards them. The right first steps protect your garden, trash, pets, and attic access before the problem gets worse.

Why raccoons are in your yard

The answer is simple, your yard is offering something raccoons want. Food is the biggest draw, followed by water and cover. A tipped trash can, fallen fruit, pet food on a porch, a pond, bird seed, or a compost pile can bring them in night after night.

Common attractants

  • Open garbage cans and loose trash bags
  • Pet food left outside after dark
  • Bird feeders and spilled seed
  • Fruit trees, berry patches, and ripe vegetables
  • Standing water, ponds, and leaky hose bibs
  • Brush piles, crawlspace openings, and deck space for shelter

If raccoons keep returning, assume they found a dependable food source. Stop that reward first, because trapping or chasing them without removing the attractant does not solve the problem.

What to do about raccoons in the backyard

Start with a same-day cleanup and lockout plan. Your goal is to remove easy food, reduce cover, and make access annoying enough that the raccoon moves on.

  1. Bring pet food and water bowls inside at dusk.
  2. Close trash cans with tight lids and add a bungee cord or locking strap.
  3. Pick up fallen fruit, nuts, and garden debris every evening.
  4. Remove bird feeders for 1 to 2 weeks if raccoons are visiting.
  5. Cut back brush and stack firewood away from fences and structures.
  6. Inspect sheds, decks, and crawlspaces for openings the size of a softball or larger.

For a stubborn yard visitor, use light and sound as a short term deterrent. A motion activated floodlight and a radio near the problem area can push a raccoon out of an entry route. Do not rely on scare devices alone, they work best only after food is removed.

Raccoons in the garden and ground garden beds

Raccoons in the garden are after grubs, worms, corn, melons, and anything easy to dig up. If you are seeing torn mulch, flipped sod, or shallow holes in raised or ground beds, the animal is foraging, not nesting. The solution is physical protection, not repellents alone.

How to get raccoons out of a ground garden

Use a barrier that stops digging and grabbing. For in-ground beds, lay 2 inch by 4 inch welded wire or hardware cloth flat on the soil surface, then cover it with a thin layer of mulch around seedlings. For crops that need access, fence the bed with a 4 foot fence and add a 12 inch outward overhang at the top if raccoons keep climbing.

For individual plants, use plastic cloches or row cover hoops. For corn, harvest as soon as ears are ready. For melons and squash, place fruit on a small crate or board so it is not sitting directly on damp soil and remains easier to protect.

Protecting raised beds and garden edges

Raccoons exploit weak spots at corners and gates. Add a latch that closes tightly, and bury fence material 6 inches into the soil if they are pushing under the edge. If they are only raiding one area, put motion lights there first and move the most attractive crops away from the perimeter.

How to keep raccoons out of trash and away from food

Trash is a top reason people see raccoons in the yard. Use a lidded can with a locking lid, not a loose top that pops off. Rinse food containers before trash day, and store bins in a garage or enclosed area if possible.

Do not feed raccoons in backyard settings, even by accident. Leaving out cat food, tossing scraps, or keeping a compost pile full of meat and grease creates a regular feeding station. Use a compost bin with a tight-fitting lid, and keep meat, dairy, and oily food out of open compost.

If raccoons are knocking over cans, weight the lid with a strap system and keep the can where it cannot be tipped into a slope or corner. A secure bin is more effective than repellents sprayed around the rim.

Keeping raccoons out of homes and attics

A yard problem becomes a home problem when raccoons find a roof edge, vent, or loose soffit. Walk the outside of your house at dusk and look for entry points around the roofline, chimney, porch roof, attic vents, and crawlspace doors. Any opening large enough for a raccoon to fit through needs immediate repair.

Seal entry points with heavy duty materials, not foam alone. Use hardware cloth, metal flashing, screwed latches, and repaired soffit panels. If you hear thumping or scratching in the attic, do not seal the opening first. Confirm the animal is out, then install exclusion materials so it cannot reenter.

When to call for removal help

Call a wildlife removal professional if you see a mother with kits, repeated attic access, aggressive behavior, or damage to wiring, insulation, or ductwork. A raccoon with babies should not be chased out blindly, because separated kits create a bigger cleanup and animal welfare problem.

Also get help if the raccoon acts sick, staggers, appears overly tame, or is active during daylight and not just near dusk. Keep children and pets inside, do not corner the animal, and avoid direct contact with droppings or nesting material.

Frequently Asked Questions

Why are raccoons in my yard at night?

They are there to feed and drink with less risk from people. Nighttime gives them access to trash, gardens, pet food, and shelter with fewer interruptions. If the yard is quiet and food is easy, they return.

What do raccoons eat in the garden?

They eat corn, berries, melons, tomatoes, ripe fruit, insects, worms, and grubs. They also dig in beds to reach larvae and soft soil. Physical barriers and cleanup stop that behavior better than scent repellents.

How do I stop raccoons from raiding my trash?

Use a locking lid, store cans indoors when possible, and keep food waste out of loose bags. Set trash out in the morning instead of the night before. If needed, add a bungee strap so the lid cannot be lifted.

Is feeding raccoons in the backyard illegal?

Rules vary by city and state, but feeding raccoons creates a serious health and property problem everywhere. It trains them to return, increases digging and trash raids, and raises the chance they move toward your house or attic.