Answer
The Privilege of Koszyce, issued by Louis I of Hungary in 1374, spelled out the liberties of Polish noblemen, including the right to elect their own king and the right to resist the king if he violated their privileges. The privilege was a major step in the development of the Polish szlachta, or nobility, and helped to establish the foundation of the Polish-Lithuanian Commonwealth.