In 1313–1314, Władysław conquered Greater Poland. In 1320, he became the first king of Poland crowned in Kraków's Wawel Cathedral instead of Gniezno. The coronation was hesitantly agreed to by Pope John XXII in spite of the opposition of King John of Bohemia, who had also claimed the Polish crown. John undertook an expedition aimed at Kraków in 1327, which he was compelled to abort; in 1328, he waged a crusade against Lithuania, during which he formalized an alliance with the Teutonic Order. The Order was in a state of war with Poland from 1327 to 1332 (see Battle of Płowce). As a result, the Knights captured Dobrzyń Land and Kujawy. Władysław was helped by his alliances with Hungary (his daughter Elizabeth was married to King Charles I in 1320) and Lithuania (in a pact of 1325 against the Teutonic State and the marriage of Władysław's son Casimir to Aldona, daughter of the Lithuanian ruler Gediminas). After 1329, a peace agreement with Brandenburg also assisted his efforts. A lasting achievement of King John of Bohemia (and a great loss to Poland) was his success in forcing most of the Piast Silesian principalities, often ambivalent about their loyalties, into allegiance between 1327 and 1329.