At the Battle of Yorktown the British were forced to surrender. They were surrounded by both land and sea by the continental army and French fleets. Cornwallis made the mistake that caused the British to lose the revolution.
Weakness in the Articles of Confederation
After they won their independence the states started to write their own constitutions. A constitution is a document with rules and laws. To be able to vote colonists needed to be a white male over the age of 21. They also needed to own land and pay taxes.
The states were hesitant to give up their central power, but ended up creating a loose alliance, the Articles of Con federation. Under the Articles of Confederation congress could only do so many things. They could declare war, handle foreign affairs, appoint military officers, and make money.
Revising the Government
The Articles of Confederation was proving to be a weak government. There was constant fighting and conflicts between the states. There were also various money problems like debt, no central currency, and it was difficult to trade goods. Other countries were also taking advantage of us because we were weak. This put in a depression which led to Shay's Rebellion.
Daniel Shay was a farmer and was unhappy, like all the others, and because he had debt that he couldn't pay off from the high taxes. So they started to revolt and attacked courthouses, so taxes couldn't be collected. Washington was able to put an end to the revolt with a millitia.
Congress came together to revise the Articles of Confederation. They planned to only revise it, but ended up rewriting the whole thing. They met up to revise it at the Constitutional Convention in 1787.