Megarhyssa macrurus, also known as the long-tailed giant ichneumonid wasp or long-tailed giant ichneumon wasp, is a species of large ichneumon wasp. It is a parasitoid, notable for its extremely long ovipositor which it uses to deposit an egg into a tunnel in dead wood bored by its host, the larva of a similarly large species of horntail.