The custom dates back to the ancient Celtic festival known as Samhain, during which time people lit bonfires and dressed up in costumes in an effort to fend off spirits. Pope Gregory III, who reigned in the seventh century, established November 1 as the day on which all saints are honored. Over time, several of the customs associated with Samhain made their way into the celebration of All Saints Day.