What is a Fungus Gnat
First, let's talk about what a fungus gnat is and how they affect your houseplants.
Fungus gnats also called mushroom flies and sciarid flies, are tiny, flying insects that lay larvae in your potting soil (ew, I know). They lay about 200 eggs a day. When these eggs hatch, the larvae feed on decaying matter and roots in the soil. Some species of these gnats are capable of seriously damaging your plants, most specifically seedlings.
The larvae are what you have to watch out for. Yes, the adult flies are flying around depositing disgusting eggs into your soil, but they don't harm your plants too much. The larvae they deposit do. These larvae will attach to the roots of your houseplants and feed on the nutrients. In other words, they will devour your plant roots. Inevitably killing your plant.
So, let us talk about how you can prevent them and overcome an infestation.