The macabre aspects which have grown up around Halloween in modern times—the emphasis on witches, ghosts and other ghoulish figures, have led many people to doubt its Christian character. Yet these demonic elements of the holiday originated from a distinctively medieval Christian idea of exorcising evil by ridiculing it.
Source