Sawflies are the insects of the suborder Symphyta within the order Hymenoptera, alongside ants, bees, and wasps. The common name comes from the saw-like appearance of the ovipositor, which the females use to cut into the plants where they lay their eggs. The name is associated especially with the Tenthredinoidea, by far the largest superfamily in the suborder, with about 7,000 known species; in the entire suborder, there are 8,000 described species in more than 800 genera. Symphyta is paraphyletic, consisting of several basal groups within the order Hymenoptera, each one rooted inside the previous group, ending with the Apocrita which are not sawflies.
The primary distinction between sawflies and the Apocrita – the ants, bees, and wasps – is that the adults lack a "wasp waist", and instead have a broad connection between the abdomen and the thorax. Some sawflies are Batesian mimics of wasps and bees, and the ovipositor can be mistaken for a stinger. Sawflies vary in length, most measuring ; the largest known sawfly measured . The larvae are caterpillar-like, but can be distinguished by the number of prolegs and the absence of crochets in sawfly larvae. The great majority of sawflies are plant-eating, though the members of the superfamily Orussoidea are parasitic.
Predators include birds, insects and small animals. The larvae of some species have anti-predator adaptations such as regurgitating irritating liquid and clustering together for safety in numbers. Sawflies are hosts to many parasitoids, most of which are Hymenoptera, the rest being Diptera.
Adult sawflies are short-lived, with a life expectancy of 7–9 days, though the larval stage can last from months to years, depending on the species. Parthenogenetic females, which do not need to mate to produce fertilised eggs, are common in the suborder, though many species have males. The adults feed on pollen, nectar, honeydew, sap, other insects, including hemolymph of the larvae hosts; they have mouth pieces adapted to these types of feeding.