In 1385, Jogaila concluded the Union of Krewo with Poland, under which he married Jadwiga of Poland and became King of Poland as Władysław II Jagiełło.