Trichomycetes are a cosmopolitan class of fungi that grow obligately in the guts of insects, crustaceans, and millipedes that live in freshwater, marine, or terrestrial habitats. Many Trichomycetes appear to be commensalistic, but under particular circumstances the gut fungi may provide their hosts with some essential organic nutrients.