After the death of Boleslav-Yuri II of Halych, Galicia–Volhynia Wars ensued which resulted in Galicia gradually being annexed by the Kingdom of Poland, between 1349 and 1366, during the reign of Casimir III of Poland.