To keep cats out of a yard, several effective and humane methods can be used. These include installing motion-activated sprinklers that spray water when cats enter the area, making the garden less comfortable with physical barriers like chicken wire or plastic carpet runners with the knobby side up, and using scent repellents such as citrus peels (orange, lemon), coffee grounds, cayenne pepper, or aromatic plants like rosemary and rue that cats dislike. Cat-proof fencing with netting or rolling bars can also prevent cats from climbing over fences. Additionally, removing food sources, locking garbage cans, and eliminating cozy hiding spots under porches or sheds help deter cats from entering the property. For garden-specific deterrence, covering soil with river rocks, pine cones, or using cat scat mats with harmless spikes can discourage digging. A mix of these techniques often produces the best results in keeping cats out of yards and gardens without harm to the animals.