The larvae are mining, generally in the stalks or leaves of herbs, sometimes in roots, seeds or under bark. In the few species living on woody plants this may lead to gall formation. Most species are more or less host specific and several species cause damage to economically important plants. The shape of the mine is often characteristic of the species and therefore useful for identification. Adults occur in a variety of habitats, depending on the larval host plants.