Gnat

A gnat (/ˈnæt/) is any of many species of tiny flying insects in the dipterid suborder Nematocera, especially those in the families Mycetophilidae, Anisopodidae and Sciaridae.

The larvae feed on organic matter such as leaf mold, mulch, compost, grass clippings, root hairs and fungi.

The aquatic larvae dwell in ponds, pools, water-filled containers, clogged rain gutters or wet soil, which generally feed on plant matter (living or dead).

[8] Some South American pleurothallid orchids are pollinated by tiny gnats and have correspondingly small flowers.

Physical tactics include eliminating favorable living conditions: reduction of excess moisture, drainage of pools with standing water, and removal of decaying organic matter.

[1] Other control measures in the household can include turning off unnecessary lights at dusk and sealing vents and other openings.

Gnat from Robert Hooke 's Micrographia , 1665
A female black fungus gnat