Plants have been used for centuries as natural pest repellents in gardens and homes. Many plants have strong odors that are disliked by insects and can help to keep them away. Here are a few plants that are effective at deterring pests:

Marigold: Marigolds are a bright and cheerful addition to any garden, and they also have the added benefit of repelling mosquitoes and other insects. The strong scent of marigold flowers is unpleasant to many insects, making them a great choice for planting around outdoor seating areas or near windows.
Citronella: Citronella is a popular choice for outdoor insect repellent products, but the plant itself is also effective at deterring pests. The leaves of citronella plants release a strong, citrusy scent that mosquitoes and other insects find unpleasant. Planting citronella near outdoor seating areas can help to keep pests at bay.
Lavender: Lavender is a popular choice for its pleasant scent and attractive purple flowers, but it also has insect-repelling properties. The strong scent of lavender is disliked by many insects, including moths and mosquitoes. Planting lavender near windows and doorways can help to keep pests out of the house.
Basil: Basil is a popular herb that has a strong, pungent scent that many insects dislike. Planting basil near windows and doorways can help to keep pests out of the house, and it can also be used in cooking to add flavor to dishes.
Mint: Mint is a popular herb that has a strong, refreshing scent that many insects dislike. Planting mint near windows and doorways can help to keep pests out of the house, and it can also be used in cooking and to make refreshing drinks.
In addition to using plants as natural pest repellents, there are other steps you can take to keep insects out of your home and garden. Keeping windows and doors closed and screened can help to prevent insects from entering the house, and regularly removing any sources of standing water (such as buckets or old tires) can help to reduce the number of mosquitoes in the area. Using natural pest control methods like these can help to keep your home and garden pest-free without relying on harsh chemicals.