On 22 June 1399, Jadwiga gave birth to a daughter, baptised Elizabeth Bonifacia, but within a month the mother and daughter died, leaving Władysław sole ruler of the Kingdom of Poland and without an heir nor much legitimacy to rule the kingdom. Jadwiga's death undermined Władysław's right to the throne, and as a result old conflicts between the nobility of Lesser Poland, generally sympathetic to Władysław, and the gentry of Greater Poland began to surface. In 1402, Władysław answered the rumblings against his rule by marrying Anna of Celje, a granddaughter of Casimir III of Poland, a political match that re-legitimised his reign.