The social contract theory states that persons' moral and/or political obligations are dependent upon a contract or agreement among them to form the society in which they live.
The idea of social contract theory as articulated by John Locke is important because Locke wants government to be *with the consent of the governed*, and he sees the social contract as the means to attain this.