---
title: "My basil plant soil has gnats (or possibly white flies). I would…"
description: "My basil plant soil has gnats (or possibly white flies). I would normally use diatomaceous earth to get rid of them. However, the soil needs to stay damp for…"
url: "https://getplanta.com/community/lKxUkhzRR_aIJD7o1QvtwQ/YFo2x8957Sgw4CXypYjuEH"
community: "Pests, diseases and problems"
author: "My Leafy Life"
published: "2025-09-23T17:58:30.590287Z"
language: "en"
image: "https://images.getplanta.com/v2/cloudinary/global_data/communities/pestsDiseasesAndProblems.jpg"
---

[Community](https://getplanta.com/community.md) / [Pests, diseases and problems](https://getplanta.com/community/lKxUkhzRR_aIJD7o1QvtwQ.md)

# My basil plant soil has gnats (or possibly white flies). I would…

_Posted by My Leafy Life on 2025-09-23_

My basil plant soil has gnats (or possibly white flies). I would normally use diatomaceous earth to get rid of them. However, the soil needs to stay damp for this plant and diatomaceous earth needs to be dry in order to use it. Does anyone have any suggestions of what I can use to get rid of them? I have neem oil but that's usually for the leaves and the actual plant itself.

## 10 comments

### Amber commented on 2025-09-23

I often water with neem oil in the water and use some small rocks as cover soil cover. The only other thing is using yellow sticky traps and a blue light trap.

They might be deep in the soil and it might take a bit to get rid of them through the lifecycle.

#### My Leafy Life replied on 2025-09-23

I've never heard of a blue light trap. Which works better?

#### Amber replied on 2025-09-23

I feel the yellow traps work better since they are in the same pot as the plant so they trap them as soon as they emerge and fly.

The blue light trap is kinda annoying at night, but it's another layer of capture for when the gnats are stronger flyers.

I'm attaching photos of the products I use, but I don't think you need anything brand name

![Attachment 1 of 2](https://images.getplanta.com/v1/resize/EaOITDxLI7kid_bwmWjed2Pivf3U6vj2NlfG_lGcgwg/Oh3ab9RST1OfffZKYuUD2A.webp?size=large)

![Attachment 2 of 2](https://images.getplanta.com/v1/resize/EaOITDxLI7kid_bwmWjed2Pivf3U6vj2NlfG_lGcgwg/PH_CHkqJTdab-H84oBmqHA.webp?size=large)

### My Leafy Life commented on 2025-09-23

I have sticky tape traps that attached to the rim. Getting them as they start to fly doesn't prevent them from laying more eggs, does it? That's why I like diatomaceous earth. It works as the go into the dirt and/or come out of it.

### Sunny commented on 2025-09-23

These two products mixed with water works by killing the larvae in the soil. Instructions are on the labels. Use either one. One is liquid and the other contains granules. 🪴🍀

![Attachment 1 of 1](https://images.getplanta.com/v1/resize/wefqOljjhEOiS9LRzOB1-QhxkVJiB4A5DGumXhnNrhs/HTbWzuRHTTKqKu8Q_aEhdg.webp?size=large)

#### My Leafy Life replied on 2025-10-28

@Sunny, I bought the Microbe-Lift BMC. Each of my plants with soil have been treated at least once but most have been treated twice or more. Since I have put it in my succulent fertilizer mix, even most of my ones that are in gritty mix have been treated. I'm not seeing a reduction in gnats/white flies. It's not like we have dozens flying around but there at least one that pesters me at my desk during the day and when I'm in the living room at night. How many times do I need to treat them to see a difference?

#### Sunny replied on 2025-10-28

Treat it until they are gone. Also, change the conditions of the soil that promoted the growth of the pests. They like continuously moist soil. They like the rot that promote fungal growth. They like low air circulation that slows the water evaporation from the soil making it slow to dry. All of the above has to be addressed. You may need better draining soil without peat moss or sphagnum moss that hold too much moisture too long. Add perlite for better drainage and airflow to the roots.

You may need to reduce how often you water to let the soil dry out more including the top soil. Note, that DE (diatomaceous earth) acts like sand and can slow the soil from drying which benefits the fungus gnats. Also, ensure you have good airflow around the plants to dry the soil faster.

It’s a lot to keep up with. I have over two hundred plants inside for winter. I see about 1 fungus gnat a week at most. I don’t need yellow sticky traps. 🪴🍀

### Hayley commented on 2025-09-24

I use predatory insects. There's a lot of beneficial mites as well as larger options that eat gnats and other pests.

#### My Leafy Life replied on 2025-09-24

What kind of insects? My plants are indoors. I don't put them outside.

#### Hayley replied on 2025-09-24

My plants are also indoors. I buy the Special Blend Predatory Mite Mix from Nature's Good Guys; it's 4 different beneficial mite species that consume spider mites, thrips, fungus gnat larvae, and whiteflies, among other nasty pests. I don't notice the predatory mites too often, but I've had no more pest issues since their introduction.

---

_Source: the Planta community (https://getplanta.com). Reading is open to everyone. To post, comment and like, get the Planta app: https://getplanta.com/download_
