A leaf miner is the larva of an insect which lives inside a leaf and eats it. Most leaf-mining insects are moths (Lepidoptera), sawflies (Symphyta, a type of wasp) and flies (Diptera). Some beetles also do this.