Stingy Jack was an Irish man who tricked the devil twice.
It was said that Jack's temper was worse than the devil himself, which annoyed the devil, who came to earth to claim his soul. Before they left for hell, Jack asked the devil if he could have one last drink, and the devil agreed. When it came time to pay, Jack said he had no money and convinced the devil to transform into a coin to pay for their drinks. He quickly trapped that coin in his pocket next to a silver cross, and with no way of turning back into his true form, the devil made a deal with Jack not to claim his soul for at least a year.
When the devil returned around Samhain, Jack said he would go with him this time, but only if the devil could pick an apple from the tree just up beside, without using any of his powers. As the devil climbed the tree, Jack scratched a cross into the bark, trapping the devil once more. This time, he had to agree to leave Jack's soul alone for 10 years.
However, soon after, Jack died, and because of his gambling and drinking, was barred from entering heaven. But because of his deal with the devil, his soul couldn't enter hell either, leaving Jack condemned to wander the dark void between worlds for eternity. Mocking him, the devil tossed Jack a glowing ember from the fires of hell. Jack hollowed out a turnip, his favorite food, and placed that burning coal inside to light his endless journey.
So this Halloween, don't just use pumpkins; if you really want to ward off evil spirits, you need to carve out a turnip and light a candle inside it.
And you have Stingy Jack, the Irish man who tricked the devil twice, to thank for that.