Andersen based “The Tinderbox" on the Scandinavian folk tale "The Spirit in the Candle". In the folk tale, a soldier acquires a magic candle which has the power to summon an iron man to do his bidding. The soldier uses the candle to visit a princess, and summons the iron man to save his life when he is sent to the stake for doing so. In the preface to the second volume of "Fairy Tales and Stories" (1863), Andersen indicates he heard the tale as a child "in the spinning room, and during the harvesting of the hops."