On this magical night, glowing jack-o-lanterns, carved from turnips or gourds, were set on porches and in windows to welcome deceased loved ones, but also to act as protection against malevolent spirits. Burning lumps of coal were used inside as a source of light, later to be replaced by candles.
BTW, the magical night is Halloween, duh.