The song originates from the music to the play Hagbarth og Signe, which Nielsen composed in connection with a production at the open-air theatre in Dyrehaven in June 1910. The same year he had two extracts of the music printed in piano arrangements (the other being Ternernes Dans). See more about this work at The Royal Library