They can also often be found in caves. Larvae both feed on fungi and are predatory - they can spin webs by secreting acid fluids, which they use to kill smaller invertebrates and capture spores. Some of the predatory larvae cannibalize pupa of their own species.
Keroplatidae is a family of small flies known as fungus gnats. About 950 species are described, but the true number of species is undoubtedly much higher. The long-beaked fungus gnats, formerly placed in a separate family Lygistorrhinidae, have been placed into Keroplatidae as subfamily Lygistorrhininae.