sentences:  It was also ruled by Kingdom of Galicia–Volhynia between 1289 and 1302.Lublin was founded as a town by Władysław I the Elbow-high or between 1258 and 1279 during the rule of the prince Bolesław V the Chaste.Casimir III the Great, appreciating the site's strategic importance, built a masonry castle in 1341 and encircled the city with defensive walls.