He pretty much decides to create laws in order to keep morality in society. The people give up some natural rights in order to enter into a or social compact. In this society Locke basically says that people have to submit their natural freedoms to the common laws and then if they do that they get government protection. Allows people to take control if the government doesn't represent the people correctly. Gives the people some authority and the right to take control if they are not treated right.
Locke tries to argue against unjust governments. I find Locke kind of negative because he thinks that all people are bad, he gives no chance to let people be wholly good. Locke ideas are kind of a forceful way to make people respect the law but in fear. He thinks that government is only necessary because there are bad people. He also notes that there must be a higher power over everything.