Although the war persisted on the high seas and in other theaters, the Patriot victory at Yorktown ended fighting in the American colonies. Peace negotiations began in 1782, and on September 3, 1783, the Treaty of Paris was signed, formally recognizing the United States as a free and independent nation after eight years of war.