Under the leadership of General George Washington, the Continental Army and Navy beat the British military safeguarding the independence of the thirteen colonies. In 1789, the 13 states replaced the Articles of Confederation of 1777 with the Constitution of the United States of America.