Flies are insects of the order Diptera, the name being derived from the Greek δι- di- "two", and πτερόν pteron "wing". Insects of this order use only a single pair of wings to fly, the hindwings having evolved into advanced mechanosensory organs known as halteres, which act as high-speed sensors of rotational movement and allow dipterans to perform advanced aerobatics. Diptera is a large order containing more than 150,000 species including horse-flies, crane flies, hoverflies, mosquitoes and others.
Flies have a mobile head, with a pair of large compound eyes, and mouthparts designed for piercing and sucking (mosquitoes, black flies and robber flies), or for lapping and sucking in the other groups. Their wing arrangement gives them great manoeuvrability in flight, and claws and pads on their feet enable them to cling to smooth surfaces. Flies undergo complete metamorphosis; the eggs are often laid on the larval food-source and the larvae, which lack true limbs, develop in a protected environment, often inside their food source. Other species are ovoviviparous, opportunistically depositing hatched or hatching larvae instead of eggs on carrion, dung, decaying material, or open wounds of mammals. The pupa is a tough capsule from which the adult emerges when ready to do so; flies mostly have short lives as adults.