The Constitution of 3 May 1791 was adopted by the Great Sejm (parliament) of the Polish–Lithuanian Commonwealth trying to save the state. The legislation was designed to redress the Commonwealth's political defects due to the system of Golden Liberties, also known as the "Nobles' Democracy," had conferred disproportionate rights on the nobility (szlachta) and over time had corrupted politics. The constitution sought to supplant the prevailing anarchy fostered by some of the country's magnates with a more democratic constitutional monarchy. It introduced elements of political equality between townspeople and nobility, and placed the peasants under the protection of the government, thus mitigating the worst abuses of serfdom. It banned parliamentary institutions such as the liberum veto, which had put the Sejm at the mercy of any deputy who could revoke all the legislation that had been passed by that Sejm. It was drafted in relation to a copy of the United States Constitution.  Others have called it the world's second-oldest codified national governmental constitution after the 1787 U. S. Constitution.