Thomas Jefferson, having been a big fan of the Enlightenment philosopher John Locke, talks specifically about how when a government becomes tyrannical, it is within the rights of the people to replace that government.
The word idea starts with a vowel and the adjective needed shouldn't also end with a vowel. And in this case, you can't use a because it's a vowel. So, you use an.