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.