Final answer:
John Locke's work advocating the idea of revolution is 'Two Treatises of Government,' which argues against the divine right of kings and for the right to revolution if a government fails to protect life, liberty, and property.
Step-by-step explanation:
The work that John Locke published to set forth the idea of revolution is known as Two Treatises of Government. Personally written in 1689, this publication details his theory of natural law, natural rights, and the justification for the right to revolution. In it, Locke refuted the divine right of kings and proposed that government should be a contract between the people and the rulers, protecting life, liberty, and property. If a government fails to protect these rights, citizens are justified in overthrowing it. Locke's fundamental principle was that of consent of the governed, laying the groundwork for modern democracy and influencing the U.S. Constitution.