 Jadwiga's father is thought to have regarded her and William as his favoured successors in Hungary after the 1379 death of her eldest sister, Catherine, since the Polish nobility had that same year pledged their homage to Louis' second daughter, Mary, and Mary's fiancé, Sigismund of Luxemburg.However, Louis died, and in 1382, at her mother's insistence, Mary was crowned "King of Hungary".Sigismund of Luxemburg tried to take control of Poland, but the Polish nobility countered that they would be obedient to a daughter of King Louis only if she settled in Poland.