Margaret I was Queen regnant of Denmark, Norway, and Sweden from the late 1380s until her death, and the founder of the Kalmar Union that joined the Scandinavian kingdoms together for over a century. From Wikipedia
Following extensive back surgery, the Queen decided to pass on the responsibility to the next generation, causing a shift in the line of succession.