The people agree to give up some freedoms if the government agrees to protect everyone's rights. If the government fails to deliver, the people revolt – like the colonists did during the American Revolution.
Social Contract Theory. Original theory by John Locke, used by Thomas Jefferson (along with many of Lockes Theories) in the Declaration of Independence and eventually the Constitution.