The Union of Kraków and Vilna also known as Union of Vilnius was one of the agreements of the Polish–Lithuanian union. It was signed in Kraków by Polish nobility on 6 May 1499 and in Vilnius by Lithuanian nobility on 24 July 1499.
Casimir IV Jagiellon was both King of Poland and Grand Duke of Lithuania. In his last will Casimir stipulated that the two states would be ruled separately by two of his sons. Thus after his death in 1492, John I Albert was elected to the Polish throne, while the Lithuanian Council of Lords chose Alexander Jagiellon. Thus the personal union between Poland and Lithuania was broken. The union at that time could be described as a dynastic union.
In the late 1490s, Poland faced pressure from the Crimean Khanate and the Ottoman Empire, while Lithuania faced the Grand Duchy of Moscow. Ivan III of Russia claimed that he inherited rights to all Russian and Orthodox lands after the fall of the Byzantine Empire. His ambitions led to beginnings of the century-long Muscovite–Lithuanian Wars. After the Tatars invaded Volhynia and Podolia in late 1494, John Albert suggested a military and further political alliance to his brother Alexander. He agreed, but negotiations dragged until spring 1498, when the Tatars invaded Podolia and Galicia and took thousands of prisoners. Reacting to these threats and wishing to secure Lithuanian military assistance, Polish nobles agreed with all Lithuanian suggestions and demands.
The Union of Vilnius was based on the Union of Horodło of 1413. It was an alliance of two equal states. It was agreed that future rulers of both countries would be chosen separately, but with consent of the other state. The Union also provided for mutual aid and assistance in various armed conflicts. Historian Tomas Baranauskas interpreted it as the most advantageous for Lithuania of all Polish–Lithuanian unions. However, almost immediately Polish nobles began protesting the union on a technicality – the act referenced the Union of Horodło, which they did not have available.
- Lukowski, Jerzy; Zawadzki, Hubert (2001). A Concise History of Poland. Cambridge University Press. p. 34. ISBN 0-521-55917-0.
- Baranauskas, Tomas (2010-02-28). "Chronologija. Vėlyvieji viduramžiai. II dalis (1386-1506 m.)" (in Lithuanian). Viduramžių Lietuva. Retrieved 2010-03-13.
- Petrauskas, Rimvydas; Jūratė Kiaupienė (2009). Lietuvos istorija. Nauji horizontai: dinastija, visoumenė, valstybė (in Lithuanian). IV. Baltos lankos. pp. 365–366. ISBN 978-9955-23-239-1.
- Kiaupa, Zigmantas; Jūratė Kiaupienė; Albinas Kunevičius (2000) . The History of Lithuania Before 1795 (English ed.). Vilnius: Lithuanian Institute of History. pp. 220–222. ISBN 9986-810-13-2.
- Jučas, Mečislovas (2000). Lietuvos ir Lenkijos unija (in Lithuanian). Aidai. pp. 177–179. ISBN 9986-590-95-7.