What Plants Repel Garden Pests

Learn which plants repel garden pests naturally and discover the remarkable benefits of using herbs and flowers in your garden for pest control.


Last Updated:


Pest Management


As an Amazon Associate we earn from qualifying purchases made on our website. If you make a purchase through links from this website, we may get a small share of the sale from Amazon and other similar affiliate programs.

You've likely faced the frustration of dealing with garden pests, but did you know certain plants can help you keep them at bay naturally? Herbs like basil, mint, and rosemary don't just add flavor to your dishes; they also act as natural repellents for a variety of pests. For instance, basil can deter flies and mosquitoes, while mint is effective against aphids and ants. Rosemary, conversely, helps keep cabbage worms and carrot flies away. Curious about how flowers and other companion plants can aid in pest control? Let's explore that next.

Herbs That Repel Pests

When you're looking to protect your garden from pests, herbs like basil, mint, and rosemary can be your best allies. These herbs don't just add flavor to your dishes; they also help repel pests effectively.

Basil, for instance, is a powerhouse against flies, mosquitoes, carrot flies, asparagus beetles, and whiteflies. Planting basil around your vegetable beds can greatly reduce these pest populations.

Mint is another excellent herb for pest control. It's especially effective against aphids, cabbage moths, carrot flies, spider mites, and ants. Just be cautious, as mint can spread aggressively; contemplate planting it in containers to keep it under control.

Rosemary isn't only a flavorful herb but also a guardian of your garden. It helps deter cabbage worms, Mexican bean beetles, carrot flies, and mosquitoes. Its strong aroma is a natural repellent, making it a great addition to any garden.

Parsley and oregano also contribute to pest control. Parsley attracts beneficial insects while repelling harmful ones like asparagus beetles. Oregano, akin to mint, spreads widely and attracts hoverflies that feed on aphids. Moreover, oregano repels mosquitoes and cabbage worms, providing a dual benefit.

Flowers for Pest Control

Incorporating flowers like marigolds, chrysanthemums, and petunias into your garden can effectively repel a variety of pests. Marigolds are especially useful in flower beds and vegetable gardens as they deter plant lice, mosquitoes, and rabbits. Planting them near doors can also help keep these unwanted visitors at bay.

Chrysanthemums are another excellent choice, known to repel ants, Japanese beetles, roaches, bed bugs, spider mites, and ticks. They're often included in commercial bug repellents because of their effectiveness.

Petunias aren't just visually appealing; they're also great at keeping garden pests such as asparagus beetles, leafhoppers, aphids, and tomato worms away. These flowers can thrive in flower beds, vegetable gardens, or even hanging baskets, providing versatile options for pest control.

Alliums, which include plants like onions, are effective in repelling aphids, cabbage worms, slugs, and carrot flies. They're especially beneficial when planted next to rose bushes or in vegetable gardens.

Nasturtiums, conversely, can repel whiteflies, beetles, and cabbage loopers, making them an excellent companion plant. Incorporating these flowers strategically in your garden can greatly reduce the presence of garden pests.

Companion Plants

Building on the advantages of flowers for pest control, companion plants serve as natural protectors by deterring harmful insects and promoting a balanced garden ecosystem. Companion planting involves strategically placing plants that naturally repel pests near vulnerable plants to minimize insect damage.

For instance, marigolds and chrysanthemums are known to release compounds that repel harmful insects, offering excellent pest protection. Onions and geraniums are other examples of effective companion plants. Onions can help protect vegetables from cabbage worms, while geraniums are adept at deterring aphids.

By placing these plants near susceptible crops, you create a natural barrier against specific pests, reducing their impact on your garden. Companion plants do more than just repel pests; they also attract beneficial insects that prey on harmful ones. This creates a balanced ecosystem, where beneficial insects help control pest populations naturally.

This method reduces the need for chemical pesticides, promoting a healthier and more sustainable garden environment. Incorporating companion plants like marigolds, chrysanthemums, onions, and geraniums into your garden not only offers pest protection but also nurtures a thriving, balanced ecosystem. By relying on these natural defenders, you can maintain a healthier garden with minimal chemical intervention.


Why not contemplate basil as a versatile addition to your garden that not just enhances your dishes but also repels pests like mosquitoes, flies, carrot flies, and whiteflies? This versatile herb is a natural pest repellent, thanks to its strong aroma, which deters a variety of garden pests. By planting basil near your vegetables, you can protect them from insect damage and enjoy the added benefit of fresh basil for your meals.

Here's a quick glance at how basil can help you manage garden pests:

Garden Pest How Basil Helps Additional Tips
Mosquitoes Deters with aroma Plant in pots near doorways
Flies Repels effectively Place near windows
Carrot Flies Protects vegetables Interplant with carrots
Whiteflies Acts as a barrier Grow around susceptible plants
General Pests Reduces infestations Use as a companion plant

Growing basil in pots near doorways or windows can keep pests at bay, creating a more comfortable and enjoyable garden environment. Whether you're a seasoned gardener or a novice, incorporating basil into your garden strategy not just provides a natural way to repel pests but also adds a flavorful touch to your culinary creations. So, contemplate basil the next time you're looking to protect your vegetables and enhance your garden's productivity.


When you're looking to keep pests like plant lice, mosquitoes, and rabbits at bay, marigolds can be your garden's best friend. These colorful flowers aren't just a visual delight; they're also highly effective in pest control. Marigolds are known for their strong scent, which plays a vital role in repelling insects and small rodents.

By planting marigolds in your flower beds, especially near doors or in vegetable gardens, you're taking a natural approach to protect your plants.

The strong scent of marigolds acts as a deterrent for plant lice and mosquitoes, making them an excellent option for repelling insects. Additionally, rabbits and other small rodents find the smell unpleasant, encouraging them to stay away from your garden. Marigolds are a popular choice among gardeners who prefer natural ways to keep pests at bay without resorting to chemical solutions.

For effective pest control, integrate marigolds into your garden's layout. Their versatility and effectiveness make them a valuable addition to any garden setup. Whether you're dealing with plant lice, mosquitoes, or rabbits, marigolds offer a natural, environmentally friendly solution to pest problems.


Lavender's strong fragrance effectively repels pests like mosquitoes, moths, flies, and fleas, making it a must-have for any garden. This aromatic herb not just enhances the aesthetic appeal of your garden but also provides a natural solution to keep unwanted insects at bay. The scent of lavender is especially potent, which helps to deter pests from infesting your outdoor spaces.

Planting lavender near windows and doors can greatly reduce the number of bugs entering your home. Its aromatic properties create a barrier that pests such as mosquitoes, flies, and fleas find intolerable. This makes it an excellent addition to areas where you frequently spend time, such as patios and garden paths.

Lavender is versatile and can be used beyond its pest-repelling qualities. Its soothing scent is popular in aromatherapy, promoting relaxation and well-being. By incorporating lavender into your garden, you not just benefit from its ability to repel pests but also enjoy a calming environment.


Rosemary is a powerful herb that effectively repels pests like cabbage worms, Mexican bean beetles, carrot flies, and mosquitoes. By incorporating rosemary into your garden, you're not just adding a versatile culinary herb; you're also protecting your vegetable plants from harmful insects. Its fragrant leaves act as a natural insect repellent, making it an excellent choice for both indoor and outdoor spaces.

When you plant rosemary near your vegetable plants, its strong fragrance confuses and deters pests, reducing the likelihood of infestations. This makes it especially effective in safeguarding your garden's health. Rosemary is a low-maintenance plant, requiring minimal care to thrive, which means you get all the benefits without the hassle.

Rosemary doesn't just belong outdoors; placing pots of this herb near doors and windows can help keep insects out of your home. The natural repellent properties of rosemary make it a practical solution for indoor pest control as well.

The herb's flavorful leaves can be used in various dishes, adding a delightful taste while simultaneously serving as a pest deterrent. Embracing rosemary in your gardening approach offers a multifaceted solution to pest management.


Just like rosemary, mint serves as a strong natural repellent, keeping mosquitoes, aphids, cabbage moths, carrot flies, spider mites, and ants away from your garden. When you plant mint, you'll find it spreads quickly, so it's best to grow it in pots near doorways to help keep pests at bay. The strong scent of mint effectively repels insects, making it a valuable addition to any garden.

To manage its rapid growth, you can easily cut back, trim, or divide mint while maintaining its pest-repelling properties. Planting mint in sunny areas will optimize its growth and pest control benefits. As part of the mint family, this herb is not just a natural mosquito repellent but also helps deter other common garden pests.

Consider pairing mint with other pest-repelling plants like lavender to enhance your garden's defense system. Mint's versatility and effectiveness in keeping pests away make it a must-have for any gardener looking to maintain a healthy, pest-free environment.

Pest Repelled by Mint Additional Tips
Mosquitoes Yes Plant near doorways
Aphids Yes Combine with other herbs
Cabbage Moths Yes Plant in sunny areas
Carrot Flies Yes Trim regularly to control growth