Soon after Jagiello's accession to the Polish throne, Jagiello granted Vilnius a city charter like that of Kraków, modeled on the Magdeburg Law; and Vytautas issued a privilege to a Jewish commune of Trakai on almost the same terms as privileges issued to the Jews of Poland in the reigns of Boleslaus the Pious and Casimir the Great. Władysław's policy of unifying the two legal systems was partial and uneven at first but achieved a lasting influence. By the time of the Union of Lublin in 1569, there was not much difference between the administrative and judicial systems in force in Lithuania and Poland.