The colonies asked for French aid against the British.
After the battle of saratoga, the French were more confident in the american war effort, and decided to send troops.
I'm so glad we finally have freedom
The French (led by Comte de Rochambeau) and Americans (led by General George Washington) surrounded the British in Yorktown October 19, 1781.
The British were forced to surrender.
Two years later, The Trety of paris was signed. It stated that Britain would recognize the Colonies as an independent nation, and withdraw their forces from their land. It also gave Americans fishing rights to the waters near Canada.