In June 1781, British General Lord Cornwallis retreated to Yorktown to rest up and reequip his army of 9,000 troops.
George Washington was outside of New York and preparing an assault on the British with the help of a 4,000 men French army commanded by French General Comte de Rochambeau.
When Washington heard that the thirty-four-ship French West Indies battle fleet was headed to Virginia, he canceled his plans on the attack in Yorktown and had all available soldiers come to port on the Chesapeake.
General Cornwallis now knew he was trapped so he asked the British fleet and the army in New York for help. A naval battle then happened between British and French ships which lasted about two and a half hours with the outnumbered British losing. French Admiral de Grasse battered several British ships during the very important clash.
As the American and French army kept defeating the British, on October 14th they laid their last blow and three days later the British surrendered.
The surrender at Yorktown ended the last battle of the war and quickly the British started to make up peace claims with the colonists. In 1783 the Treaty of Paris was signed and America was its own country with no relations to Britain. George Washington was such a great general in the war so he was elected as the first president of the United States.