At the time of his birth Poland was divided into many independent states. For years Władysław struggled to unite Poland into one strong state. He was at war with a powerful king of Bohemia, Wenceslaus II. His lands were also in danger of the Teutonic Knights who had seized the town of Gdansk. Despite all odds, Władysław united Greater Poland and lesser Poland and was crowned in 1320.