sentences:  The history of Łańcut is much older than the castle erected in 1642.It goes back to the times of King Casimir III the Great, who founded here a town in accordance with the Magdeburg Rights in the 14th century.At the time Łańcut was owned by the Pilecki family, who had connections with the royal Jagiellonian Dynasty.