The idea of natural rights holds that some rights do not come from kings, laws or customs. People have them simply by being human, and governments exist to protect them. The doctrine has roots in ancient and medieval theories of natural law, but it took its modern form in the seventeenth century. John Locke gave the classic statement in his Two Treatises of Government (1689): in the state of nature everyone is free and equal, and each has a right to life, liberty and property. Because these rights are prior to government, a ruler who violates them forfeits the obedience of his subjects. The theory thus leads directly to the Social Contract and to a right of resistance.
Natural rights were a challenge to every inherited hierarchy. If rights belong to individuals by nature, then the privileges of nobles, the authority of an established church and the Divine Right of Kings have no foundation. Writers of the The Enlightenment extended the list to include freedom of conscience, speech and the press and equality before the law.
Revolutionaries turned philosophy into political claims. The Declaration of Independence holds that all men are endowed with unalienable rights, among them life, liberty and the pursuit of happiness. The Declaration of the Rights of Man and of the Citizen names liberty, property, security and resistance to oppression as "natural and imprescriptible." The English Bill of Rights of 1689 had listed rights too, but as the historic liberties of English subjects; the new documents claimed to speak for humanity.
That universal wording became a lever for the excluded. If rights are natural, on what grounds could they be denied to women, to the enslaved, to Jews, to the poor? Mary Wollstonecraft and Olympe de Gouges pressed the question for women, the rebels of the Haitian Revolution and the movement of Abolitionism pressed it against slavery, and campaigners for the Expansion of Suffrage pressed it for workingmen. Defenders of the old order, and of slavery, answered either by denying that such rights existed or by denying that some people were fully capable of exercising them, which gave new prominence to theories of racial and sexual difference.
Natural rights are the ancestor of modern Human Rights, codified internationally in the Universal Declaration of Human Rights of 1948. The doctrine also underlies 19th-Century Liberalism, which treats the protection of individual rights as the main purpose of the state.