Legion means a large group or in another parlance it may mean "many". In the Christian Bible, it is used to refer to the group of demons, particularly those in two of three versions of the exorcism of the Gerasene demoniac, an account in the New Testament of an incident in which Jesus performs an exorcism. Legion is a large collection of demons that share a single mind and will.
The earliest version of this story exists in the Gospel of Mark, described as taking place in "the country of the Gerasenes". Jesus encounters a possessed man and calls on the demon to emerge, demanding to know its name – an important element of traditional exorcism practice. He finds the man is possessed by a multitude of demons who give the collective name of "Legion". Fearing that Jesus will drive them out of the world and into the abyss, they beg him instead to cast them into a herd of pigs on a nearby hill, which he does. The pigs then rush into the sea and are drowned (Mark 5:1–5:13).
This story is also in the other two Synoptic Gospels. The Gospel of Luke shortens the story but retains most of the details including the name (Luke 8:26–8:33). The Gospel of Matthew shortens it more dramatically, changes the possessed man to two men (a particular stylistic device of this writer) and changes the location to "the country of the Gadarenes". This is probably because the author was aware that Gerasa is actually around 50 km (31 mi) away from the Sea of Galilee—although Gadara is still 10 km (6.2 mi) away. In this version, the demons are unnamed (Matthew 8:28–8:32).
According to Michael Willett Newheart, professor of New Testament Language and Literature at the Howard University School of Divinity (2004), the author of the Gospel of Mark could well have expected readers to associate the name Legion with the Roman military formation, active in the area at the time (around 70 AD). The intention may be to show that Jesus is stronger than the occupying force of the Romans. The Biblical scholar Seyoon Kim, however, points out that the Latin legio was commonly used as a loanword in Hebrew and Aramaic to indicate an unspecified but large quantity. In the New Testament text, it is used as a proper name, which is "saturated with meaning". In this sense, it can mean both the size and power of the occupying Roman army as well as a multitude uncounted/ uncountable of demonic spirits. It is the latter sense that has become the common understanding of the term as an adjective in modern English (whereas when used as a noun it indicates the Roman military number, between 3,000 and 6,000 infantry with cavalry; cf. "we are legion" and "we are a legion").
In the Storm of the Century miniseries, the main antagonist, Andre Linoge, is eventually described as a Legion.
General info from Wikipedia.org