When and by whose instigation Erfenstein was founded is not known for certain; however its builders were the Leiningen counts on whose land Erfenstein lay.
The historic background to the legend is that both castles were always owned by different lords - to begin with the Spangenberg belonged to the prince-bishops of Speyer and Erfenstein, as mentioned, to the Leiningens - who were in competition with one another.