for the next 567 years. After the death of Olav IV of Norway in 1387, the closest in line to the succession was the Swedish king Albert of Mecklenburg. However, his succession was politically unacceptable to the Norwegians and Danes. Next in line were the descendants of the Sudreim lineage, legitimate descendants of Haakon V of Norway's illegitimate, but recognized daughter Agnes Haakonardottir, Dame of Borgarsyssel. However, the candidate from this lineage renounced his claim to the throne in favour of Eric of Pomerania, Queen Margaret's favoured candidate. The succession right of this lineage resurfaced in 1448 after the death of King Christopher, but the potential candidate, Sigurd Jonsson, again renounced his candidature – see Sudreim claim. Eric's succession was one in a line of successions which did not precisely follow the laws of inheritance, but excluded one or a few undesirable heirs, leading to Norway formally becoming an elective kingdom in 1450. Starting with Margaret I of Denmark, the throne of Norway was held by a series of non-Norwegian kings (usually perceived as Danish) who variously held the throne to more than one Scandinavian countries, or of all of them. In 1440, the Norwegian privy council reluctantly deposed king Eric III (1383–1459), after Denmark and Sweden had done the same. The nearest heir to throne was Eric's cousin, Bugislav, but the succession-laws were overlooked because of the necessity to choose the same king as Denmark and Sweden. Christopher of Bavaria was therefore chosen as Norwegian king. In 1448 when Christopher died without close heirs, the union between Sweden and Denmark dissolved, as the two countries chose different kings. Sweden chose Charles Knutsson Bonde, while Denmark chose Christian of Oldenburg (Christian I of Denmark). Norway was thus left with a dilemma. Once again, hereditary rights seem to have had little influence over the decisions made (according to feudal inheritance, the Duke of Mecklenburg would have been closest in rights, and Duke Adolf of Schleswig-Holstein as head of next branch, who however had supported his nephew Christian's election). Sigurd Jonsson, of the Sudreim-line, a descendant of Haakon V of Norway, seems to have been mentioned as a candidate, but turned the offer down. The Norwegian nobility then split between supporters of king Charles of Sweden and King Christian of Denmark. Charles succeeded in being crowned king of Norway in Trondheim in 1449, but in 1450 agreed to renounce the Norwegian throne