A soldier steals a magic tinderbox from an old witch. The tinderbox can summon three magic dogs that will do what the soldier wants them to do. He orders one dog to bring him a sleeping princess from her parents' castle. When the king and queen learn where their daughter is, the soldier is arrested and sentenced to death. At the last moment, he summons the dogs. They save his life and he marries the princess.