Nematomorpha

The Nematomorpha (horsehair worms) are a phylum of parasitic cycloneuralian animals. They look similar to nematode worms and live in similar environments, which is why their names are similar. They are sometimes called Gordiacea.
They range in size from long and in extreme cases may be up to 2 meters long. They are in diameter. Horsehair worms can be discovered in damp areas such as watering troughs, streams, puddles, and cisterns. 
About 326 species are known and an estimate suggests that there may be about 2000 species worldwide. 
Fossilized worms have been reported from Lower Cretaceous Burmese amber 100–110 million years ago.
Life cycle.
The adult worms are free living and, in North America, are usually found only in the summer months in or near shallow water.
The larvae are parasitic on arthropods: beetles, cockroaches, grasshoppers and crickets. These are their final hosts, but since they do not live in water, the nematomorph life cycle has an extra stage. 
A day or two after they come out of their hosts, the adult worms mate in the water, and then around mid-August or Mid-October, they lay their eggs in the water. It takes about a month for the larvae to develop inside the egg. Once the larvae hatch, they somehow get into gastropods (like snails and slugs), insects, or earthworms, which live in moist habitats. There they build a cyst, and grow. The animal they grow inside is called an interim (temporary) host, because a final host is still needed.
Next, developing nematomorph worms can be found in their final hosts (beetles, etc.). It is not clear how they get there, but probably the final host eats the interim host with the larvae inside them. After they appear in the final host, the nematomorphs begin to eat it from the inside.
The nematomorph may control the host, leading it towards water and even causing it to jump into the water. Then it breaks out of the beetle in or near the water and finds a knot of other worms. There it can mate.