 The Seniorate remained contested after Kraków was inherited by Casimir's II son Leszek I the White in 1194, still by his uncle Mieszko III (d. 1202), then by his younger brother Konrad of Masovia, by his cousin, Mieszko's III son Władysław III Spindleshanks and also by the second son of Władysław II the Exile, Duke Mieszko IV Tanglefoot of Upper Silesia.In the long-term struggle Leszek I was killed in 1227 and the Pomerelian lands got lost, when Duke Swietopelk II of Gdańsk declared himself independent.In 1232 the Silesian duke Henry I the Bearded finally prevailed, re-uniting the thrones of Wrocław and Kraków under his rule as determined by the will of late Duke Bolesław III Krzywousty in 1138.