The first owner of the town was Otton ("z Pilczy") Pilecki, who was given the Łańcut estate by the Polish king, Casimir III the Great, in 1349, as a reward for his service. At the same time, the king also granted Łańcut its city rights according to Magdeburg law. In 1381 Łańcut was officially named a ‘town’ for the first time, by Otton Pilecki, in the foundation charter of the town. Łańcut remained under the ownership of the Pilecki family up to 1586.