The theory that individuals form communities by mutual consent, giving up some of their individual liberty in order to gain the protection of government, is known as