Fungus gnats are small, dark, short-lived gnats, of the families Sciaridae, Diadocidiidae, Ditomyiidae, Keroplatidae, Bolitophilidae, and Mycetophilidae ; they comprise six of the seven families placed in the superfamily Sciaroidea.
Sciaridae
A gnat is any of many species of tiny flying insects in the dipterid suborder Nematocera, especially those in the families Mycetophilidae, Anisopodidae and Sciaridae. Most often they fly in large numbers, called clouds. "Gnat" is a loose descriptive category rather than a phylogenetic or other technical term, so there is no scientific consensus on what constitutes a gnat. Some entomologists consider only non-biting flies to be gnats. Certain universities and institutes also distinguish eye gnats: the Smithsonian Institution describes them as "non-biting flies, no bigger than a few grains of salt, ... attracted to fluids secreted by your eyes".
Gnat from Robert Hooke's Micrographia, 1665
A female black fungus gnat