If your lawn looks rotavated overnight, work out whether a fox or a badger did it before you buy a deterrent, because the two are treated differently. It can be impossible to keep foxes out of a garden, and they have no special protection beyond the ban on cruelty. Badgers and their setts are protected by law in Scotland, and interfering with a sett, even recklessly, is an offence. Remove whatever draws them in, protect what matters with fencing, and take advice before touching a sett.
Who has been in the garden
Both animals come for food. Badger diet is usually about 80% earthworms, and badgers and foxes both rip up lawns in autumn to spring to reach chafer grubs feeding on the roots. A fox may also dig up new plants where bonemeal, dried blood or chicken pellet manure has been used, because it smells the food.
| Sign | Badger | Fox |
|---|---|---|
| Digging | Snuffle holes: small pits made by snouts, with ripped-up turf on lawns | Holes dug in the ground; new plants dug up where bonemeal, dried blood or chicken pellet manure has been used |
| Droppings | Left uncovered in open pits, grouped into latrines that mark the edge of their territory | Droppings left in prominent places as territorial markers, plus a pungent urine smell |
| Home | A sett entrance shaped like a sideways D, wider than tall, with a large soil heap holding soil, stones and bedding | Dens under sheds or decking or in existing holes; tunnels taller than wide |
| Prints | Five toes in a line with long claw marks, 6.5cm wide, robust and broad | Not five toes in a line, unlike a badger |
| Other signs | Coarse black and white hairs caught on fences where they squeeze through, and scratch marks on trees | Chewed or stolen items, buried food and trampled plants |

Badger setts can be mistaken for fox and rabbit burrows: a badger entrance is oval and wider than tall, the tunnels are usually around 30cm across against about 15cm for rabbits, and the soil heap at the entrance is larger and holds stones, sometimes clay balls and bedding of dry grass, bracken or leaves. Fresh soil at the entrance means a sett is in current use, but an apparently unused sett can still be protected, so do not assume it is disused. Badgers can share setts with foxes and rabbits. Check with NatureScot before any work within a few metres of one. A single neat cone of soil with no hole is more likely a molehill than a badger or fox. Both animals can visit the same lawn on different nights, so identify the damage before choosing a fix.
What works
Foxes
Standard netting or fencing is unlikely to stop a fox, because foxes scramble over or dig under it. A fence that can deter foxes needs to be a secure barrier at least 2m high, ideally with a 30cm overhang at the top and buried at least 45cm into the ground, and flexible trelliswork on top discourages climbing (Wandsworth Council pest control advice, 2007). That fence does little against badgers, and the badger fence below does little against foxes, so if you have both you need both. Proprietary repellents need frequent application to keep working and in some cases appear to be ignored. Human hair, chilli and predator urine are widely repeated but unproven, and animals get used to them; wood preservative, disinfectant and human urine are illegal to use as repellents (Wandsworth). Relocating urban foxes is not recommended, because other foxes quickly take over the vacated territory. What helps:
- Fill in holes promptly before they deepen, otherwise a den may be established.
- Seal bins and composters securely to stop access to scraps, keep meat out of the compost heap, do not leave pet food or food for other wildlife out overnight, and put bin bags out only on collection day.
- Check the gaps under sheds and decking: if a den is a problem, weld mesh dug down into the ground around the building stops foxes returning (Wandsworth).
- A motion-activated sprinkler or light can startle a fox for a while, but they usually get used to it within a season or so, so move it every couple of weeks.
- Protect fruit and vegetables with fences or solid weld mesh with holes at least 4cm wide, not flexible netting, which can tangle wildlife.
- Keep rabbits and other pets in a secure enclosure at night, with a solid roof and floor, weld mesh rather than chicken wire and a secure lock.
- Check any den is empty before working near it. Cover part of the entrance with loose soil or sticks that still let foxes come and go: if they have not moved after a few days, it is likely empty. If it is not empty, wait until the cubs leave in late summer.
Fox cubs are born in late March to April, in a den that may be under an outbuilding, and emerge after about four weeks. Activity around a den rises considerably, particularly in early summer when there may be up to five cubs, and the cubs stay with their parents until mid to late summer.
Avoid mothballs: UK government product safety reports describe their naphthalene as a banned, carcinogenic substance, with products seized and destroyed. It is also against the law to use as a deterrent any substance that has not been approved for that use (RSPCA).
Badgers
You can exclude badgers from a garden with metal mesh fencing buried at least 50cm deep, but only after checking there is no sett in the garden and that the area is not an important commuting route, such as the only connection to greenspace further afield. If badgers are digging for chafer grubs they are stubborn and follow the same routes every night, going round, over, under or through obstacles. The only treatment available to gardeners is a nematode biocontrol watered into the turf in late summer to early autumn, which works best on the younger larvae. Scottish soil cools sooner, so the early end of that window is probably safer. Lawn damage is best repaired in spring, when badgers and foxes have generally lost interest in the grubs. If fruit or vegetables are being affected, put a fence around them.

A hole 13cm by 13cm lets a hedgehog through a fence and is too small for nearly all pets. If you fence with fine weld mesh, leave a hedgehog gap at ground level.
The law
The Protection of Badgers Act 1992 applies in England, Wales and Scotland. It is an offence to wilfully kill, injure or take a badger, or to possess a dead badger or anything derived from one. It is also an offence to damage or destroy a sett, obstruct an entrance, cause a dog to enter it, or disturb a badger in it, intending to or being reckless as to whether the action would. In Scotland it is also an offence to knowingly cause or permit these acts, and the penalty on summary conviction is up to 12 months' imprisonment or a fine of up to £40,000, or both, with higher penalties on indictment.
Scottish SPCA's advice on a sett in your garden is: you don't get rid of it. Seek advice from a local badger expert or Badger Trust, and discourage badgers by removing or fencing off whatever is attracting them, such as fruit and vegetables. For an injured or distressed badger, call the Scottish SPCA. Where interference cannot be avoided, such as building work near a sett, you need a licence from NatureScot, which issues them for surveys and research, development, land management and to prevent serious damage. Licences for works near setts are not usually granted from 1 December to 30 June, when badgers are most sensitive to disturbance.
Foxes have no protected status, so you can fence them out or make the garden unwelcoming. But the Wild Mammals (Protection) Act 1996 makes it an offence to inflict unnecessary suffering on a wild mammal, including a fox, by acts such as beating, stabbing, burning, crushing or drowning, and poisoning a fox is illegal (RSPCA). Do not use glue traps on any animal: since 1 July 2026 it has been a criminal offence in Scotland to use, supply or possess one, with penalties of up to £40,000 or 12 months in prison.
Common questions
Is it illegal to block a badger hole if I didn't know it was a sett?
The offence covers interfering with a sett intending to do so or being reckless as to the consequences, so ignorance is a weak defence. If you find a large entrance with a spoil heap and bedding, treat it as a sett and get advice from a local badger expert or Badger Trust before doing anything to it.
Do repellents keep foxes off a vegetable patch?
Proprietary repellents need frequent application to keep working and in some cases appear to be ignored. Protecting crops with fences or solid weld mesh with holes at least 4cm wide is more dependable.
Are mothballs illegal to use as a repellent?
Avoid them. Naphthalene is a banned, carcinogenic substance in UK product safety reports, and it is against the law to use as a deterrent any substance not approved for that use.
Will a fence that keeps foxes out also keep badgers out?
No, treat them as separate jobs. Standard fencing and netting is unlikely to stop a fox, which will scramble over or dig under it. A badger exclusion fence is metal mesh buried at least 50cm deep, and it should only be built if there is no sett in the garden and the area is not an important commuting route.
When should I avoid work near a sett or den?
For badgers, from 1 December to 30 June, when they are most sensitive to disturbance and NatureScot does not usually grant licences for works near setts. For foxes, spring to late summer: cubs are born in late March to April and the family stays together until mid to late summer.
Sources
Show the 14 sources
- RHS: Foxes in the garden: Fox damage and signs, bonemeal and dried blood attracting digging, territorial droppings, chafer grub damage, the difficulty of keeping foxes out, repellents needing frequent application, filling in holes promptly, not relocating urban foxes, and cub timing
- RHS: Badgers in your garden: Snuffle holes, latrines, hairs, tracks, D-shaped setts, earthworm diet, chafer grubs, the buried 50cm mesh fence and its conditions, the nematode treatment in late summer to early autumn, and repairing lawns in spring
- RSPCA: Foxes in the garden: Fox dens under sheds or decking, checking a den is empty, cubs leaving in late summer, protecting crops with weld mesh with holes at least 4cm wide, sealing bins and composters, securing pets, and illegal deterrents
- The Wildlife Trusts: Identify tracks: Badger prints 6.5cm wide with five toe pads and long claw marks
- Scottish SPCA: Badger sett: Sett entrances wider than tall against taller fox and rabbit tunnels, soil heaps with stones and bedding, hairs, dung pits, five toes in a line, and advice that a sett cannot be got rid of
- Protection of Badgers Act 1992, section 1: The offences of killing, injuring or taking a badger and possessing a dead badger
- Protection of Badgers Act 1992, section 3: The sett-interference offences, including recklessness
- Protection of Badgers Act 1992 as it applies to Scotland: Scottish amendments for knowingly causing or permitting offences and the penalties of up to 12 months or a £40,000 fine on summary conviction
- Wild Mammals (Protection) Act 1996, section 1: The offence of inflicting unnecessary suffering on a wild mammal with intent
- NatureScot: Badgers and licensing: Licences for surveys, development, land management and preventing serious damage, and the 1 December to 30 June sensitive period
- gov.scot: Glue trap ban comes into force: The offence from 1 July 2026 to use, supply or possess a glue trap, with penalties of up to £40,000 or 12 months in prison
- gov.uk: Product safety report on naphthalene mothballs: Naphthalene as a banned, carcinogenic substance, and products seized and destroyed
- Wandsworth Council: Advice on deterring and discouraging foxes (2007): A secure fence at least 2m high with a 30cm overhang buried at least 45cm, flexible trelliswork, weld mesh dug down around sheds, not feeding pets in the garden, no meat on compost heaps, repellents often proving ineffective, and wood preservative, disinfectant and human urine being illegal as repellents (a London council)
- Hedgehog Street: Link your garden: A 13cm by 13cm hole being enough for any hedgehog and too small for nearly all pets

