Fungus gnats are common tiny flies. You will see them flying around potted plants, and they are attracted to windows and lights. Their larvae thrive in the soil of over-watered houseplants. You can often control these flies by watering potted plants less often, allowing the soil to dry out between waterings.