
According to folk legend, having been turned away from both, heaven and hell, the jack-o-lantern light is a soul that is forced to wander the earth forever. It's dangerous to see one, because they can force humans to blindly follow them to their deaths or disappearance.
There is an Irish folktale that provides a good background for the origin of the name. There was a man named Jack who was hated by most of the villagers for his drunkeness and terrible attitude. He was drinking one night when the devil came to claim his soul, however he was able to convince him to have one last drink with him before going to Hell. After they finished drinking, Jack explained to the devil that he did not have the money to pay for them and quite cunningly convinced the devil to change himself into a sixpence and then to change himself back after paying. The devil agreed, but Jack picked up the devil's coined self and placed him into his coin bag, which had the shape

The custom of carving a pumpkin into a jack-o-lantern is a thousand year old custom from Ireland. People would hallow out turnips, carve simple and sometimes scary faces, and used them as lanterns to light the roads for Halloween travelers. They were also used to scare away evil ghosts.