Jagiellonian dynasty
On 7 August 1492 King Casimir IV of Poland died, and the Dukes of Masovia (who wanted to escape from the shadow of the Jagiellonian dynasty) proposed Janusz II as candidate for the crown. However, when Janusz II arrived to Kraków, it was too late: Casimir IV's son John I Albert was elected new King.