Answer
The Union of Krewo, formed between Poland and Lithuania in 1385, marked Władysław II Jagiełło's last significant act as a pagan ruler. This pivotal agreement orchestrated the conversion of the Grand Duke of Lithuania and his subjects to Christianity, paving the way for Jagiełło's marriage to the Polish Queen Jadwiga and the eventual unification of Lithuania with the Kingdom of Poland.