"The Tinderbox" () is a literary fairy tale by Hans Christian Andersen about a soldier who acquires a magic tinderbox capable of summoning three powerful dogs to do his bidding. When the soldier has one of the dogs transport a sleeping princess to his room, he is sentenced to death but cunningly summons the dogs to save his life.
In the Aarne-Thompson tale index, "The Tinderbox" is type 562: The Spirit in the Blue Light. Other tales of this type include The Three Dogs and The Blue Light.
The story opens with a poor soldier returning home from war. He meets a witch, who asks him to climb into a hollow tree to retrieve a magic tinderbox. The witch gives the man permission to take anything he finds inside the chambers, but he must return the tinderbox. In the tree, he finds three chambers filled with precious coins guarded by three monstrous dogs, "one with eyes the size of teacups", who guards a vault filled with pennies, one with "eyes the size of water wheels", who guards a vault filled with silver, and one with eyes "the size of Round Tower", who guards a vault filled with gold. He fills his pockets with money, finds the tinderbox, and returns to the witch. When she demands the tinderbox without giving a reason, the soldier lops off her head with his sword.
In the following scene, the soldier enters a large city and buys himself splendid clothing and lives in a magnificent apartment. He makes many friends. He learns of a princess kept in a tower after a prophecy foretold her marriage to a common soldier; his interest is piqued and he wants to see her but realizes his whim cannot be satisfied. Eventually, the soldier's money is depleted and he is forced to live in a dark attic. He strikes the tinderbox to light the room, and one of the dogs appears before him. The soldier then discovers he can summon all three dogs and order them to bring him money from their subterranean dwelling. Again, he lives splendidly.
One night, he recalls the story of the princess in the locked tower, and desires to see her. He strikes the tinderbox and sends the dog with eyes the size of teacups to bring her to his apartment. The soldier is overwhelmed with her beauty, kisses her and orders the dog to return her to the tower. The following morning, the princess tells her parents she has had a strange dream and relates the night's adventure. The royal couple then watch her closely. When the princess is carried away again, they unsuccessfully use a trail of flour and chalk marks on neighborhood doors to find where she spends her nights. Eventually, her whereabouts are discovered and the soldier is clapped in prison and sentenced to death. The tinderbox got left behind, so he cannot summon its help.
On the day of execution, the soldier sends a boy for his tinderbox, and, at the scaffold, asks to have a last smoke. He then strikes the tinderbox and the three monstrous dogs appear. They toss the judge and the councillors, the King and Queen into the air. All are dashed to pieces when they fall to earth. The soldier and the princess are united, and the dogs join the wedding feast.
Andersen biographer Jackie Wullschlager writes, "["The Tinderbox"] is a confident, young man's tale—jaunty, brisk, and exhilarating. It celebrates youth over age and it has the energy and hope and satisfaction of a traditional folk tale—"Aladdin", "Puss in Boots", "Jack and the Beanstalk"—whose young hero overcomes adversity and ends a contented, successful adult."
In 1985, Gremlin Graphics released a ZX Spectrum-only children's adventure game titled Tinderbox, of which all profit went to the Ethiopian famine relief fund through Soft Aid. In the game, written by Colin C. Chadburn, a wounded foot soldier named Tom must defeat a wicked witch and an evil king who together cruelly rule the country in order to save and marry the beautiful Princess Rowella. Tom does not kill the villains, instead he just scares the witch-queen away and banishes the king.
Tinderbox received mixed reviews, ranging from only one out of five stars from Sinclair User, to the scores of 7/10 from both Crash and Your Spectrum. According to Home Computing Weekly, "the game could have been a massive hit" if only it was written in The Quill instead of BASIC.