To discourage cats from visiting your yard, identify what draws them there and reduce access to that specific attraction. Food, shelter, loose soil and a quiet resting spot call for different responses. Use humane measures and seek help if a cat appears injured, lost or to be caring for kittens.
A cat passing through once does not necessarily require a whole-yard deterrent system. Observe the pattern and protect the affected area first. If you know the owner, a calm conversation about the problem may help more than repeatedly changing scented products.
Remove avoidable food attractants
Keep waste in secure containers and clear spilled food. Feed household pets indoors or supervise outdoor feeding and remove leftovers promptly. Inspect stored animal feed and compost arrangements as well as the obvious food bowl.
Consider whether bird-feeding arrangements are drawing cats into a place where birds are vulnerable. Adjust the setup with wildlife welfare in mind rather than assuming that a scented border protects feeding birds. Avoid creating another hazard while addressing the first problem.
Check shelter before closing an opening
Cats may rest beneath decks, sheds or other protected spaces. Before blocking access, make certain no animals or dependent kittens remain inside. Listening briefly at an opening is not always enough; get advice from an animal-welfare organization if the space cannot be inspected adequately.
Once confirmed clear, use a suitable secure barrier with no exposed sharp edges or entangling sections. Check the repair over time. Do not seal an occupied refuge or attempt to chase an animal into an unsafe route.
Protect soil and resting areas without injury
Use appropriately designed barriers or covers for the affected area, leaving plants enough room and checking that wildlife cannot become trapped. Store or cover furniture when appropriate. Loose netting, protruding wire, sharp mulch and improvised spike arrangements are poor substitutes for a safe exclusion design.
For a planting-specific problem, see keeping cats out of flower beds. That narrower task may be solved without attempting to exclude every animal from the entire property.
Do not scatter toxic or irritating substances
Do not use tobacco, coffee or tea grounds, concentrated essential oils, mothballs or irritating homemade mixtures as cat deterrents. Food or plant origin does not establish safety. The ASPCA explains the risks of essential-oil exposure, and its tobacco profile identifies a toxic plant.
If a commercial repellent is considered, check that it is intended for the exact use and follow all label directions around plants, children and animals. Do not spray a cat with an improvised chemical mixture. A repellent claim is not a guarantee of effectiveness or harmlessness in every setting.
Use deterrent devices cautiously
The RSPCA garden guidance discusses humane deterrence. Any device should be used according to its instructions and assessed for effects on pets, wildlife and people. Do not describe ultrasound as inaudible to everyone or guaranteed to create a permanent cat-free zone.
Keep a clear escape route and avoid using a device to frighten an animal trapped in a confined space. Stop if it causes distress or other unintended problems. Monitoring the result matters more than covering every boundary with equipment.
Get help when exclusion is not the right answer
Contact the owner or an appropriate local welfare service for an injured, apparently abandoned or persistently distressed cat. Do not trap and relocate cats on your own without appropriate local advice and permissions. Ask for help if kittens or a nursing mother are involved.
If suspected exposure to a harmful substance occurs, contact a veterinarian promptly with the product or plant details. Keep a simple record of visits and the measures used; combine removal of attractants with safe access control rather than escalating to more hazardous deterrents.

