Answer: Social contract theory, nearly as old as philosophy itself, is the view that persons' moral and/or political obligations are dependent upon a contract or agreement among them to form the society in which they live.
(looked some information on this topic up to help you a bit better)
:)