Soil gnats like moist soil so that you can lay their eggs. Therefore, a layer of sand on the soil surface area will dry it out rapidly. This discourages them from laying eggs there.“You can find differing types of gnats, but those you’re going to be looking at buzzing all around your plants are fungus gnats, which feed on decaying plants, like