They occur in rocks that were originally formed in swamp and marsh habitats - where dragonflies pursue small flying insects, such as midges, gnats and moths, to eat. Libellulids survive today as the dragonflies known as darters or skimmers, most of which have a broad body flattened from top to bottom.