On 11 January 1386 a Polish delegation met Jogaila in Vawkavysk and presented him with a pre-election pact, declaring that the Polish nobility agreed to elect him as their new king. The election was concluded on 1 February in Lublin. On 12 February Jogaila and his relatives arrived in Kraków and were baptized by Bodzanta, Bishop of Gniezno, three days later in the Wawel Cathedral. Jogaila's new baptismal name Wladislaus was chosen in honor of Jadwiga's great-grandfather king Władysław I the Elbow-high, the penultimate Piast. Jogaila married Jadwiga on 18 February and was crowned "jure uxoris" as King of Poland on 4 March. Due to negative propaganda by William of Austria and the Teutonic Knights, the marriage was not confirmed by Pope Urban VI (1378–1389); only Pope Boniface IX (1389–1404) declared it legitimate.