Between 1354 and 1567 the city held general assemblies of Polish knights, and general or elective meetings of the Polish Sejm (during the latter Polish kings of the Jagiellon dynasty were elected there). In Piotrków, two Grand Masters of the Teutonic Order pledged allegiance to Polish King Casimir IV Jagiellon in 1469 and 1470. It was in the city of Piotrków that the Polish Parliament was given its final structure with the division into an Upper House and Lower Chamber in 1493. King John I Albert published his "Piotrków privilege" on May 26, 1493, which expanded the privileges of the szlachta at the expense of the bourgeoisie and the peasantry.