The history of the Ukrainian minority in Poland dates back to the Late Middle Ages,[1] preceding the 14th century Galicia–Volhynia Wars between Casimir III the Great of Poland, and Liubartas of Lithuania. Following the extinction of the Rurikid dynasty in 1323, the Polish Kingdom extended further east in 1340 to include the lands of Przemyśl and in 1366, Kamianets-Podilskyi (Kamieniec Podolski). After the Union of Lublin (1569), principalities of Galicia and Western Volhynia became, what is known as, the Ruthenian Voivodeship of the Polish Crown, while the rest of Red Ruthenia together with Kyiv came under Lithuanian control. The Polish borders reached as far east as Zaporizhzhia, and Poltava.