The play was accepted for performance at the Royal Theatre in May 1917. Nielsen, who earlier had been working on Njal's Saga, composed the music during that time and before the first performance in February 1918. See more about this work at The Royal Library