In 1781, the colonies formed a confederation of states under the Articles of Confederation, but it lasted only six years. It gave almost all the power to the states and very little to the central government. The confederation had no president. It could not remove Native Americans or the British from the frontier, nor could it stop mob uprisings such as Shays' Rebellion. After Shays' Rebellion, many people thought the Articles of Confederation were not working.