According to John Locke's social contact theory which government would be an illegal government

According to John Locke's social contract theory, a government can be considered illegal under certain circumstances.

John Locke believed that governments are formed through a social contract between the people and the government. This contract entails that the government is established to protect the natural rights of its citizens, including life, liberty, and property. If a government fails to fulfill its obligations under the social contract, it can be seen as illegitimate.

Locke argued that a government becomes illegal when it violates the people's natural rights and abuses its power. If a government oversteps its authority, becomes tyrannical, or fails to provide basic protections for its citizens, it can be considered an illegal government.

Therefore, according to Locke, an illegal government would be one that violates the principles of the social contract by infringing upon the natural rights of its citizens and wielding power in an oppressive or unjust manner.

To determine whether a government can be considered illegal according to Locke's social contract theory, you would need to examine its actions and policies in light of the principles of protecting natural rights and fulfilling the obligations of the social contract.