Since governments exist by the consent of the people in order to protect the rights of the people and promote the public good, governments that fail to do so can be resisted and replaced with new governments. Locke is thus also important for his defense of the right of revolution.