Social contract describes a broad class of theories that try to explain the ways in which people form states and/or maintain social order. The notion of the social contract implies that the people give up some rights to a government or other authority in order to receive or maintain social order.
Social contract theory formed a central pillar in the historically important notion that legitimate state authority must be derived from the consent of the governed. The starting point for most of these theories is a heuristic examination of the human condition absent from any structured social order, usually termed the “state of nature”. In this condition, an individual’s actions are bound only by his or her personal power, constrained by conscience. From this common starting point, the various proponents of social contract theory attempt to explain, in different ways, why it is in an individual’s rational self-interest to voluntarily give up the freedom one has in the state of nature in order to obtain the benefits of political order.
Thomas Hobbes (1651), John Locke (1689) and Jean-Jacques Rousseau (1762) are the most famous philosophers of contractarianism, which formed the theoretical groundwork of democracy.
The social contract and the civil rights it gives us are neither "natural rights" nor permanently fixed. Rather, the contract itself is the means towards an end — the benefit of all — and (according to some philosophers such as Locke or Rousseau), is only legitimate to the extent that it meets the general interest ("general will" in Rousseau). Therefore, when failings are found in the contract, we renegotiate to change the terms, using methods such as elections and legislature. Locke theorized the right of rebellion in case of the contract leading to tyranny.
Since civil rights come from agreeing to the contract, those who choose to violate their contractual obligations, such as by committing crimes, abdicate their rights, and the rest of society can be expected to protect itself against the actions of such outlaws. To be a member of society is to accept responsibility for following its rules, along with the threat of punishment for violating them. In this way, society works by "mutual coercion, mutually agreed upon" (Hardin 1968).