In both moral and political philosophy, the social contract or political contract is a theory or model, originating during the Age of Enlightenment, that typically addresses the questions of the origin of society and the legitimacy of the authority of the state over the individual. Social contract arguments typically posit that individuals have consented, either explicitly or tacitly, to surrender some of their freedoms and submit to the authority of the ruler or magistrate (or to the decision of a majority), in exchange for protection of their remaining rights. The question of the relation between natural and legal rights, therefore, is often an aspect of social contract theory. The term takes its name from The Social Contract (Du contrat social ou Principes du droit politique) a 1762 book by Jean-Jacques Rousseau which discussed this concept.
Although the antecedents of social contract theory are found in antiquity, in Greek and Stoic philosophy and Roman and Canon Law, the heyday of the social contract was the mid-17th to early 19th centuries, when it emerged as the leading doctrine of political legitimacy. The starting point for most social contract theories is an examination of the human condition absent from any political order that Thomas Hobbes termed the "state of nature". In this condition, individuals' actions are bound only by their personal power and conscience. From this shared starting point, social contract theorists seek to demonstrate, in different ways, why a rational individual would voluntarily consent to give up their natural freedom to obtain the benefits of political order.