Temporal range: Precambrian-Recent 
a model species of roundworm
The nematodes (, ) or roundworms constitute the phylum Nematoda (also called Nemathelminthes). They are a diverse animal phylum inhabiting a broad range of environments. Nematode species can be difficult to distinguish, and although over 25,000 have been described, of which more than half are parasitic, it is estimated that over 40,000 species exist; estimates of 500,000 to 1 million species are not supported by evidence. Nematodes are classified along with insects and other moulting animals in the clade Ecdysozoa, and, unlike flatworms, have tubular digestive systems with openings at both ends.
Nematodes have successfully adapted to nearly every ecosystem from marine (salt water) to fresh water, to soils, and from the polar regions to the tropics, as well as the highest to the lowest of elevations. They are ubiquitous in freshwater, marine, and terrestrial environments, where they often outnumber other animals in both individual and species counts, and are found in locations as diverse as mountains, deserts and oceanic trenches. They are found in every part of the earth's lithosphere, even at great depths, 0.9-3.6 km (3,000-12,000 ft), below the surface of the Earth in gold mines in South Africa. They represent 90% of all animals on the ocean floor. Their numerical dominance, often exceeding a million individuals per square meter and accounting for about 80% of all individual animals on earth, their diversity of life cycles, and their presence at various trophic levels point at an important role in many ecosystems. There are about 2271 genera in 256 families. The many parasitic forms include pathogens in most plants and animals. A third of the genera occur as parasites of vertebrates; about 35 nematode species occur in humans.
Nathan Cobb, a nematologist, described the ubiquity of nematodes on Earth thus:
In short, if all the matter in the universe except the nematodes were swept away, our world would still be dimly recognizable, and if, as disembodied spirits, we could then investigate it, we should find its mountains, hills, vales, rivers, lakes, and oceans represented by a film of nematodes. The location of towns would be decipherable, since for every massing of human beings there would be a corresponding massing of certain nematodes. Trees would still stand in ghostly rows representing our streets and highways. The location of the various plants and animals would still be decipherable, and, had we sufficient knowledge, in many cases even their species could be determined by an examination of their erstwhile nematode parasites.
The name of the group Nematoda, informally called "nematodes", came from Nematoidea, originally defined by Karl Rudolphi (1808), from Ancient Greek ? (nêma, nêmatos, 'thread') and -ei (-eid?s, 'species'). It was treated as family Nematodes by Burmeister (1837).
At its origin, the "Nematoidea" erroneously included Nematodes and Nematomorpha, attributed by von Siebold (1843). Along with Acanthocephala, Trematoda and Cestoidea, it formed the obsolete group Entozoa, created by Rudolphi (1808). They were also classed along with Acanthocephala in the obsolete phylum Nemathelminthes by Gegenbaur (1859).
In 1861, K. M. Diesing treated the group as order Nematoda. In 1877, the taxon Nematoidea, including the family Gordiidae (horsehair worms), was promoted to the rank of phylum by Ray Lankester. In 1919, Nathan Cobb proposed that nematodes should be recognized alone as a phylum. He argued they should be called "nema" in English rather than "nematodes"[a] and defined the taxon Nemates (later emended as Nemata, Latin plural of nema), listing Nematoidea sensu restricto as a synonym. Since Cobb was the first to exclude all but nematodes from the group, some sources consider the valid taxon name to be Nemates or Nemata, rather than Nematoda.
The phylogenetic relationships of the nematodes and their close relatives among the protostomian Metazoa are unresolved. Traditionally, they were held to be a lineage of their own, but in the 1990s, they were proposed to form the group Ecdysozoa together with moulting animals, such as arthropods. The identity of the closest living relatives of the Nematoda has always been considered to be well resolved. Morphological characters and molecular phylogenies agree with placement of the roundworms as a sister taxon to the parasitic Nematomorpha; together they make up the Nematoida. Along with the Scalidophora (formerly Cephalorhyncha), the Nematoida form the clade Cycloneuralia, but much disagreement occurs both between and among the available morphological and molecular data. The Cycloneuralia or the Introverta--depending on the validity of the former--are often ranked as a superphylum.
Due to the lack of knowledge regarding many nematodes, their systematics is contentious. An earliest and influential classification was proposed by Chitwood and Chitwood--later revised by Chitwood--who divided the phylum into two--the Aphasmidia and the Phasmidia. These were later renamed Adenophorea (gland bearers) and Secernentea (secretors), respectively. The Secernentea share several characteristics, including the presence of phasmids, a pair of sensory organs located in the lateral posterior region, and this was used as the basis for this division. This scheme was adhered to in many later classifications, though the Adenophorea were not in a uniform group.
As it seems, the Secernentea are indeed a natural group of closest relatives. But the "Adenophorea" appear to be a paraphyletic assemblage of roundworms simply retaining a good number of ancestral traits. The old Enoplia do not seem to be monophyletic either, but to contain two distinct lineages. The old group "Chromadoria" seem to be another paraphyletic assemblage, with the Monhysterida representing a very ancient minor group of nematodes. Among the Secernentea, the Diplogasteria may need to be united with the Rhabditia, while the Tylenchia might be paraphyletic with the Rhabditia.
The understanding of roundworm systematics and phylogeny as of 2002 is summarised below:
Later work has suggested the presence of 12 clades. The Secernentea--a group that includes virtually all major animal and plant 'nematode' parasites--apparently arose from within the Adenophorea.
A major effort to improve the systematics of this phylum is in progress and being organised by the 959 Nematode Genomes.
A complete checklist of the World's nematode species can be found in the World Species Index: Nematoda.
An analysis of the mitochondrial DNA suggests that the following groupings are valid
The monophyly of the Ascaridomorph is uncertain.
Nematodes are small, slender worms: typically approximately 5 to 100 µm thick, and 0.1 to 2.5 mm long. The smallest nematodes are microscopic, while free-living species can reach as much as 5 cm (2 in), and some parasitic species are larger still, reaching over 1 m (3 ft) in length.:271 The body is often ornamented with ridges, rings, bristles, or other distinctive structures.
The head of a nematode is relatively distinct. Whereas the rest of the body is bilaterally symmetrical, the head is radially symmetrical, with sensory bristles and, in many cases, solid 'head-shields' radiating outwards around the mouth. The mouth has either three or six lips, which often bear a series of teeth on their inner edges. An adhesive 'caudal gland' is often found at the tip of the tail.
The epidermis is either a syncytium or a single layer of cells, and is covered by a thick collagenous cuticle. The cuticle is often of complex structure, and may have two or three distinct layers. Underneath the epidermis lies a layer of longitudinal muscle cells. The relatively rigid cuticle works with the muscles to create a hydroskeleton as nematodes lack circumferential muscles. Projections run from the inner surface of muscle cells towards the nerve cords; this is a unique arrangement in the animal kingdom, in which nerve cells normally extend fibres into the muscles rather than vice versa.
The oral cavity is lined with cuticle, which is often strengthened with ridges or other structures, and, especially in carnivorous species, may bear a number of teeth. The mouth often includes a sharp stylet, which the animal can thrust into its prey. In some species, the stylet is hollow, and can be used to suck liquids from plants or animals.
The oral cavity opens into a muscular, sucking pharynx, also lined with cuticle. Digestive glands are found in this region of the gut, producing enzymes that start to break down the food. In stylet-bearing species, these may even be injected into the prey.
There is no stomach, with the pharynx connecting directly to a muscleless intestine that forms the main length of the gut. This produces further enzymes, and also absorbs nutrients through its single cell thick lining. The last portion of the intestine is lined by cuticle, forming a rectum, which expels waste through the anus just below and in front of the tip of the tail. Movement of food through the digestive system is the result of body movements of the worm. The intestine has valves or sphincters at either end to help control the movement of food through the body.
Nitrogenous waste is excreted in the form of ammonia through the body wall, and is not associated with any specific organs. However, the structures for excreting salt to maintain osmoregulation are typically more complex.
In many marine nematodes, one or two unicellular 'renette glands' excrete salt through a pore on the underside of the animal, close to the pharynx. In most other nematodes, these specialised cells have been replaced by an organ consisting of two parallel ducts connected by a single transverse duct. This transverse duct opens into a common canal that runs to the excretory pore.
Four peripheral nerves run the length of the body on the dorsal, ventral, and lateral surfaces. Each nerve lies within a cord of connective tissue lying beneath the cuticle and between the muscle cells. The ventral nerve is the largest, and has a double structure forward of the excretory pore. The dorsal nerve is responsible for motor control, while the lateral nerves are sensory, and the ventral combines both functions.
At the anterior end of the animal, the nerves branch from a dense, circular nerve (nerve ring) round surrounding the pharynx, and serving as the brain. Smaller nerves run forward from the ring to supply the sensory organs of the head.
The bodies of nematodes are covered in numerous sensory bristles and papillae that together provide a sense of touch. Behind the sensory bristles on the head lie two small pits, or 'amphids'. These are well supplied with nerve cells, and are probably chemoreception organs. A few aquatic nematodes possess what appear to be pigmented eye-spots, but is unclear whether or not these are actually sensory in nature.
Most nematode species are dioecious, with separate male and female individuals, though some, such as Caenorhabditis elegans, are androdioecious, consisting of hermaphrodites and rare males. Both sexes possess one or two tubular gonads. In males, the sperm are produced at the end of the gonad and migrate along its length as they mature. The testis opens into a relatively wide seminal vesicle and then during intercourse into a glandular and muscular ejaculatory duct associated with the vas deferens and cloaca. In females, the ovaries each open into an oviduct (in hermaphrodites, the eggs enter a spermatheca first) and then a glandular uterus. The uteri both open into a common vulva/ vagina, usually located in the middle of the morphologically ventral surface.
Reproduction is usually sexual, though hermaphrodites are capable of self-fertilization. Males are usually smaller than females/ hermaphrodites (often much smaller) and often have a characteristically bent or fan-shaped tail. During copulation, one or more chitinized spicules move out of the cloaca and are inserted into the genital pore of the female. Amoeboid sperm crawl along the spicule into the female worm. Nematode sperm is thought to be the only eukaryotic cell without the globular protein G-actin.
Eggs may be embryonated or unembryonated when passed by the female, meaning their fertilized eggs may not yet be developed. A few species are known to be ovoviviparous. The eggs are protected by an outer shell, secreted by the uterus. In free-living roundworms, the eggs hatch into larvae, which appear essentially identical to the adults, except for an underdeveloped reproductive system; in parasitic roundworms, the life cycle is often much more complicated.
Nematodes as a whole possess a wide range of modes of reproduction. Some nematodes, such as Heterorhabditis spp., undergo a process called endotokia matricida: intrauterine birth causing maternal death. Some nematodes are hermaphroditic, and keep their self-fertilized eggs inside the uterus until they hatch. The juvenile nematodes will then ingest the parent nematode. This process is significantly promoted in environments with a low food supply.
The nematode model species Caenorhabditis elegans and C. briggsae exhibit androdioecy, which is very rare among animals. The single genus Meloidogyne (root-knot nematodes) exhibit a range of reproductive modes, including sexual reproduction, facultative sexuality (in which most, but not all, generations reproduce asexually), and both meiotic and mitotic parthenogenesis.
The genus Mesorhabditis exhibits an unusual form of parthenogenesis, in which sperm-producing males copulate with females, but the sperm do not fuse with the ovum. Contact with the sperm is essential for the ovum to begin dividing, but because there is no fusion of the cells, the male contributes no genetic material to the offspring, which are essentially clones of the female.
Different free-living species feed on materials as varied as algae, fungi, small animals, fecal matter, dead organisms, and living tissues. Free-living marine nematodes are important and abundant members of the meiobenthos. They play an important role in the decomposition process, aid in recycling of nutrients in marine environments, and are sensitive to changes in the environment caused by pollution. One roundworm of note, Caenorhabditis elegans, lives in the soil and has found much use as a model organism. C. elegans has had its entire genome sequenced, as well as the developmental fate of every cell determined, and every neuron mapped.
Nematodes commonly parasitic on humans include ascarids (Ascaris), filarias, hookworms, pinworms (Enterobius), and whipworms (Trichuris trichiura). The species Trichinella spiralis, commonly known as the 'trichina worm', occurs in rats, pigs, and humans, and is responsible for the disease trichinosis. Baylisascaris usually infests wild animals, but can be deadly to humans, as well. Dirofilaria immitis are known for causing heartworm disease by inhabiting the hearts, arteries, and lungs of dogs and some cats. Haemonchus contortus is one of the most abundant infectious agents in sheep around the world, causing great economic damage to sheep. In contrast, entomopathogenic nematodes parasitize insects and are mostly considered beneficial by humans, but some attack beneficial insects.
One form of nematode is entirely dependent upon fig wasps, which are the sole source of fig fertilization. They prey upon the wasps, riding them from the ripe fig of the wasp's birth to the fig flower of its death, where they kill the wasp, and their offspring await the birth of the next generation of wasps as the fig ripens.
A newly discovered parasitic tetradonematid nematode, Myrmeconema neotropicum, apparently induces fruit mimicry in the tropical ant Cephalotes atratus. Infected ants develop bright red gasters (abdomens), tend to be more sluggish, and walk with their gasters in a conspicuous elevated position. It is likely that these changes cause frugivorous birds to confuse the infected ants for berries, and eat them. Parasite eggs passed in the bird's feces are subsequently collected by foraging Cephalotes atratus and are fed to their larvae, thus completing the life cycle of M. neotropicum.
Similarly, multiple varieties of nematodes have been found in the abdominal cavities of the primitively social sweat bee, Lasioglossum zephyrum. Inside the female body, the nematode hinders ovarian development and renders the bee less active and thus less effective in pollen collection.
Plant-parasitic nematodes include several groups causing severe crop losses. The most common genera are Aphelenchoides (foliar nematodes), Ditylenchus, Globodera (potato cyst nematodes), Heterodera (soybean cyst nematodes), Longidorus, Meloidogyne (root-knot nematodes), Nacobbus, Pratylenchus (lesion nematodes), Trichodorus and Xiphinema (dagger nematodes). Several phytoparasitic nematode species cause histological damages to roots, including the formation of visible galls (e.g. by root-knot nematodes), which are useful characters for their diagnostic in the field. Some nematode species transmit plant viruses through their feeding activity on roots. One of them is Xiphinema index, vector of grapevine fanleaf virus, an important disease of grapes, another one is Xiphinema diversicaudatum, vector of arabis mosaic virus.
Other nematodes attack bark and forest trees. The most important representative of this group is Bursaphelenchus xylophilus, the pine wood nematode, present in Asia and America and recently discovered in Europe.
Depending on the species, a nematode may be beneficial or detrimental to plant health. From agricultural and horticulture perspectives, the two categories of nematodes are the predatory ones, which will kill garden pests like cutworms and corn earworm moths, and the pest nematodes, like the root-knot nematode, which attack plants, and those that act as vectors spreading plant viruses between crop plants. Predatory nematodes can be bred by soaking a specific recipe of leaves and other detritus in water, in a dark, cool place, and can even be purchased as an organic form of pest control.
Rotations of plants with nematode-resistant species or varieties is one means of managing parasitic nematode infestations. For example, marigolds, grown over one or more seasons (the effect is cumulative), can be used to control nematodes. Another is treatment with natural antagonists such as the fungus Gliocladium roseum. Chitosan, a natural biocontrol, elicits plant defense responses to destroy parasitic cyst nematodes on roots of soybean, corn, sugar beet, potato, and tomato crops without harming beneficial nematodes in the soil.Soil steaming is an efficient method to kill nematodes before planting a crop, but indiscriminately eliminates both harmful and beneficial soil fauna.
The golden nematode Globodera rostochiensis is a particularly harmful variety of nematode pest that has resulted in quarantines and crop failures worldwide. CSIRO has found a 13- to 14-fold reduction of nematode population densities in plots having Indian mustard Brassica juncea green manure or seed meal in the soil.
Ninety percent of nematodes reside in the top 15 cm of soil. Nematodes do not decompose organic matter, but, instead, are parasitic and free-living organisms that feed on living material. Nematodes can effectively regulate bacterial population and community composition -- they may eat up to 5,000 bacteria per minute. Also, nematodes can play an important role in the nitrogen cycle by way of nitrogen mineralization.
Nematode worms (C. elegans), part of an ongoing research project conducted on the Space Shuttle Columbia mission STS-107, survived the re-entry breakup. It is believed to be the first known life-form to survive a virtually unprotected atmospheric descent to Earth's surface.
Estimates of 500,000 to a million species have no basis in fact.