2. Lemon tree
A very simple way to deter snakes is to plant lemongrass in your garden. Snakes hate the smell of citrus fruits and fortunately mosquitoes hate them!

3. Citrus lotion
Speaking of citrus fruits, you can add the peel and slices of a lemon or an orange to a pot of water. Leave the fruit in the water for 24 hours. Spray the solution on patio furniture and around deck/porch stairs to deter snakes from getting too close.

4. Maintain your garden
If you have a lot of weeds and piles of sticks or other debris littering your lawn, these are the perfect hiding places. If you keep your garden tidy and maintained, snakes will be less likely to reside there.

5. Seal your house
You don't want snakes in your garden, and you certainly don't want them in your home. Make sure to seal all cracks in your foundation and around doors and windows. You should also make sure there are no holes in window screens etc.

6. DIY snake repellent
Chemical-laden snake repellents can harm your pets, family members, and plants. You can make your own natural snake repellent using equal amounts of cinnamon oil and clove oil. Spray the solution around the perimeter of your house, yard, and anywhere you think snakes might hide.

7. Mothballs

Not only do mothballs deter insects, but they also deter snakes. You can place mothballs around your foundation and back porch to deter them. However, mothballs can be highly toxic to children and pets, so you should not have any mothballs around.
8. Move them

If you've tried everything, you can also buy humane snake traps and put them in your garden. When you catch a snake, leave it in a wooded area far from your house!