* Make your garden less attractive to cats. Remove any food or water sources that may be attracting them, and keep your trash cans covered. You can also try planting plants that cats don't like the smell of, such as lavender, peppermint, or lemongrass.
* Use a motion-activated sprinkler. Motion-activated sprinklers can startle cats and deter them from using your garden.
* Put up a physical barrier. You can install a fence or netting around your garden to keep cats out.
* Use a cat repellent. There are a number of commercial cat repellents available that you can spray around your garden.
* Talk to your neighbors. If there are cats in your neighborhood that are using your garden as a toilet, talk to your neighbors and see if they're willing to work with you to deter the cats.
It's important to be humane when deterring cats from using your garden. Killing cats is not only cruel, but it's also ineffective. If you follow these tips, you should be able to keep cats out of your garden without resorting to violence.