Overview
Thomas Hobbes famously said that in a "state of nature" human life would be "solitary, poor, nasty, brutish, and short". In the absence of political order and law, everyone would have unlimited natural freedoms, including the "right to all things" and thus the freedom to plunder, rape, and murder; there would be an endless "war of all against all" (bellum omnium contra omnes). To avoid this, free men contract with each other to establish political community i.e. civil society through a social contract in which they all gain security in return for subjecting themselves to an absolute Sovereign, preferably (for Hobbes) a monarch.
Though the Sovereign's edicts may well be arbitrary and tyrannical, Hobbes saw absolute government as the only alternative to the terrifying anarchy of a state of nature. Alternatively, John Locke and Jean-Jacques Rousseau, have argued that we gain civil rights in return for accepting the obligation to respect and defend the rights of others, giving up some freedoms to do so. The central assertion of social contract approaches is that law and political order are not natural, but are instead human creations. The social contract and the political order it creates are simply the means towards an end — the benefit of the individuals involved — and legitimate only to the extent that they fulfill their part of the agreement.
According to Hobbes (in whose view government is not a party to the original contract) citizens are not obligated to submit to the government when it is too weak to act effectively to suppress factionalism and civil unrest. According to other social contract theorists, citizens can withdraw their obligation to obey or change the leadership, through elections or other means including, when necessary, violence, when the government fails to secure their natural rights (Locke) or satisfy the best interest of society (called the "general will" in Rousseau, who is more concerned with forming new governments than in overthrowing old ones).
Read more about this topic: Social Contract