Whose writings were the source of the idea that people have a right to abolish and replace a government that violates their natural rights?

Whose writings were the source of the idea that people have a right to abolish and replace a government that violates their natural rights class=