Most mornings and evenings we would see a fox and his vixen appear in the London garden. They seemed very much at home, often sunbathing on the shed roof, or sitting under bushes near the front door. It was a busy area, both with main trunk roads and an underground line that made plenty of noise, which ran under the founds of the house. There were plenty of signs that the foxes had a lair somewhere nearby. I was advised not to block up the gap holes that had already been dug under the fence. If I did, new ones, I was told, would appear. The brick wall could not be breached, the wooden gates could be.
Some years before, the owner of the house had placed a bird table in the centre of the garden; not all her discarded bread scraps were on the bird table, and very little was eaten by the birds . It was clear that her misguided animal feeding had attracted rather a lot of grey squirrels that she liked to observe and probably other wildlife, some of it unheard of in urban areas till recent years. She was oblivious to the developing problem, which was uncovered by a leak in the roof of the house.
The local authority were called in to deal with an infestation of squirrels that had homed themselves in the rather spacious loft of the house, also that of an attached neighbour. The rodent people did their job and they made follow-up inspections. A bill was duly paid. Firm and clear instructions were given against leaving out any food scraps for any purpose, to avoid a repetition of the infestation. This instruction included bird food, seeds and nuts, the squirrels would love them.
The squirrels were rarely seen after the clear out, yet the foxes regularly arrived. There were plenty of fruit trees in neighbourhood gardens, plums, pears, and this one had apples. I don't know if foxes eat windfall fruits, they'll certainly forage in bins and break open the obligatory refuse sacks (as do pigeons and gulls) that the local authority demand are left - unprotected in many urban places - for collection. There seemed to be a reason for the foxes being so comfortably where they were, the main one, doubtless, being, food.
Where I live, in a rural area, foxes are rarely seen in gardens, and certainly are guarded against near or on farms. They are out in fields; sometimes you see one on the verge of a road that has been in collision with a vehicle.