The terrestrial larvae usually feed on fungi, especially the fruiting bodies but also spores and hyphae, but some species have been recorded on mosses and liverworts.