Adding plants that repel snakes is one potential way to keep them at bay.

Using plants as part of an integrated pest management strategy is best.

Studies show strong anecdotal evidence to support the use of certain species.

Close up of eastern diamondback rattlesnake in grass.

Kristian Bell / Getty Images

However, science confirming their effectiveness is scarce.

Want more gardening tips?

Why not try the bitter melon (Momordica charantia)?

Close up of two bitter melons ripe on a vine

jiande wu / Getty Images

Gardeners often use it for this purpose in its native country, India.

This edible tropical fruit is part of the same family as squash and cucumber.

When ripe, it has a bitter outer skin and a sweet red inner.

Bitter Kola tree

Hiobson / Wikimedia Commons / CC BY-SA 4.0

Alternatively, it’s possible for you to grow it as an annual.

To avoid rot, grow this plant on trellises.

This is a rare tree outside of its home nation.

Organically homegrown ‘Ring of Fire’ cayenne peppers ripened to red on the vine

eurobanks / Getty Images

Its also best suited to large yards, as it can grow to well over 50 feet.

Regular reapplication will be necessary, especially after rainfall.

These heat-loving, bushyperennial plantscan reach up to 4 feet tall.

Close up of the small blue flowers of the chaste tree (Vitex negundo)

Subas chandra Mahato / Getty Images

Growing in zones 9 to 11, they need a full sun position and moist, well-draining soil.

They are also easy to cultivate as annuals in cooler regions.

The seeds should be ready to spread a few months after planting.

Close up of the leaves of a cinnamon trees

TommyIX / Getty Images

While cinnamon species can be slow growers, be careful about which one you select.

Clove trees are slow-growing, long-lived, species with attractive reddish-pink flower buds and aromatic foliage.

It also has an aroma sometimes likened to a skunk.

A citronella plant in full bloom with pink flowers.

Akchamczuk / Getty Images

This is likely why some sociocultural groups in West Africa have chosen it as a snake-repelling plant.

Be aware that only the leaves of epazote are edible.

The other plant parts, especially the seeds, are toxic to people and pets.

Close up of a clove tree in bloom

Bicho_raro / Getty Images

The creeping vines of this fast-growing plant can reach up to 30 feet in length when conditions are right.

The species is invasive in Hawaii.

Rural communities in West Africa use a crushed bulb infusion to sprinkle around properties to repel snakes.

Two epazote plants growing in the soil

The Spruce / Jayme Burrows

The scent of the plant alone could also act as a deterrent.

Plant your garlic in a site with full sun, well-draining soil and even moisture.

Its best to let the soil go dry for two to three weeks before harvesting.

Close up of the tubular pink blooms of the Hawaiian baby woodrose (Argyreia nervosa)

Md Sojibul Islam / Getty Images

Garlic is toxic to pets, so protect the planting site from curious cats and canines.

Geraniums

kuarmungadd / Getty Images

While no studies prove their efficacy, Geraniums (Pelargoniumspp.)

Grow geraniums in hardiness zones 9 to 12 in full sun and well-draining soil.

Close up of the bulbs of harvested garlics

The Spruce / K. Dave

Allowing the soil to dry out between waterings anddeadheading spent bloomsencourages prolific flowering.

In some parts of Africa, people plant it to repel snakes.

This stunning, fast-growing shrub blooms prolifically when conditions are right.

Pink geranium flower blooming and with drops of water on the petals

kuarmungadd / Getty Images

To make the most of the flowers, grow in hardiness zones 9 to 12 or as annuals elsewhere.

Tropical hibiscus does best in a full sun or part-shade location with moist and well-draining soil.

This evergreen, compact shrub can reach 3 feet tall and grows in USDA hardiness zones 10 to 12.

Close up of the foliage of the Andrographis paniculate

Penpak Ngamsathain / Getty Images

These plants are often drought tolerant and ideal for sunny, arid landscapes with good drainage.

The foliages strong smell and dense, sharp edges likely makes it aversive to snakes.

Marigolds

Marigolds contain naturalinsecticidal compounds called pyrethrinsthat could also be unappealing to snakes.

Close up of the bright red flowers of the tropical hibiscus

The Spruce / Phoebe Cheong

Thats why you sometimes see these compounds listed in commercial snake repellents.

They do best in full sun or part shade and well-draining soils in USDA hardiness zones 10 to 12.

Onion

As with garlic, growing onions (Allium cepa) could help keep snakes away.

Close up of the foliage and red flower of the Indian snakeroot shrub

Kanjana Wattanakungchai / Getty Images

Keep the bulbs out of reach of your pets.

Onions, like their garlic relatives, are toxic to pets.

Pine oil typically comes from the Scotch pine (Pinus sylvestris).

close up of the foliage of juniper

The Spruce / Christopher Lee Foto

It grows in full sun in USDA hardiness zones 2 to 9 and handles very poor soil conditions.

Scots pines are invasive in some parts of the US.

They believe the appearance and sharp leaf edges can scare away these reptiles.

Two clumps of lemongrass in containers on decking

Philippe Gerber / Getty Images

When you crush this aquatic perennial’s upright, sword-shaped foliage, it emits a pleasantly fragrant aroma.

This low-maintenance moisture-lover is especially useful as a decorative accent around water features and ponds.

The foliage can grow to 3 feet tall in zones 4 to 10.

Close up of an orange marigold flower

The Spruce / Phoebe Cheong

It prefers a full sun or partial shade location in medium to wet soils.

Mature specimens can grow to over 60 feet, so theyre best suited to expansive yards.

Tamarind trees grow best in zones 10 to 11 in full sun and fertile, well-draining soil.

Close up of the small flowers of a blooming neem tree

Ravinder Kumar / Getty Images

These plants grow readily in sunny spots with fertile, well-draining soil.

Thyme isnt just useful for cookingthe tiny flowersattract pollinators, and plant extracts can repel snakes.

Vetiver can grow in USDA hardiness zones 7 to 11 in full sun or part shade.

White flowers of the Plumeria alba (nosegay tree)

Levente Bodo / Getty Images

This hardy plant can handle poor soils and drought and is highly pest- and disease-resistant.

The plant’s fragrance is thought to be undesirable to snakes.

This long-lived perennial can bloom year-round in zones 9 to 11.

A cluster of ready-to-harvest onions in the ground

The Spruce / K. Dave

This species appreciates a full sun or part shade position and is adaptable to various soil types.

Yellow alder is invasive in Hawaii.

Sukumaran D.Evaluation of snake repellents against the principal venomous snakes of india in laboratory condition.

Snake plant in a pink pot in a room with a white brick wall

The Spruce / Alonda Baird

North Carolina Cooperative Extension.

Velez-Gavilan J.Argyreia Nervosa (Elephant Creeper).CABI Compendium, 2022, doi:10.1079/cabicompendium.690.

Assessing the Efficacy of Five Commonly Used Snake and Gecko Repelling Agents When Applied Outdoors.

Cluster of sweet flag plants beside the water’s edge

LITTLE DINOSAUR / Getty Images

UPSpace Institutional Repository

Onion.

Observations on Snake Repellent Property of Some Plant Extracts.Health & Environmental Research Online (HERO).

University of Florida, Institute of Food and Agricultural Sciences.

Close up of the delicate foliage of a tamarind tree

Penpak Ngamsathain / Getty Images

Close up of a flowering thorny amaranthus (amaranthus spinosus)

ian al amin / Getty Images

Close up of the mature leaves of a thyme plant

The Spruce / Almar Creative

Close up of the pink flowers of the tobacco plant (Nicotiana tabacum)

Iker Zabaleta / Getty Images

Dense clumps of vetiver grass

Fahroni / Getty Images

Cluster of flowering yellow alder (turnera ulmifolia)

tc397 / Getty Images