The script was based on an 1826 novella by Wilhelm Hauff and written by Heinz Pauck and Luiselotte Enderle.
Schloss Mespelbrunn, actually located within the Spessart hills, was used as the castle of Graf Sandau.