According to legend, in 18th century Ireland, there lived a man known as 'Stingy Jack', notorious for his love of alcohol and cunning nature. One day, he found himself drinking with the devil and managed to convince him to transform into a gold coin to avoid paying the bill. However, Jack tricked the devil by placing the coin next to a cross in his pocket. In return, the devil promised not to claim Jack's soul for a certain period of time.
Years later, the devil reappeared before Jack. This time, Jack tricked him into climbing an apple tree, carved a cross into the trunk, and once again trapped the devil. The devil was released only after swearing an oath not to claim Jack's soul for all eternity. However, when Jack passed away, he was not virtuous enough to be admitted into heaven, and God turned him away.
When he attempted to enter hell, the devil reminded him of the promise and refused him entry. All Jack had left was a burning piece of coal to light his way in the darkness. He placed this coal inside a hollowed-out turnip and was doomed to wander the earth forever.