The correct answer to this is:
“the social contract”
The social contract is the view in which a person’s moral and obligations depend on the contract or agreement among them forming the so called society in which they live. A second contract meanwhile created the government.