During the American Revolution, the local European population, who were primarily American colonists that supported independence, rebelled against Britain. The British, with the help of local tribes, continually attacked American settlements in the region starting in 1776 and conquered Detroit. In 1781, Spanish raiders led by a French Captain Eugene Poure travelled by river and overland from St Louis, liberated British-held Fort St Joseph, and handed authority over the settlement to the Americans the following day. The war ended with the signing of the Treaty of Paris in 1783, and Michigan passed into the control of the newly formed United States of America. The states of New York, Virginia, Massachusetts then Connecticut ceded their territorial rights over the land. In 1787, the region became part of the Northwest Territory. The majority of Indians did not recognize the new government and instead formed the Western Confederacy. General Anthony Wayne with his Kentucky marksmen won the Battle of Fallen Timbers which led to the end of hostilities and treaties recognizing federal government sovereignty. The British, however, continued to occupy Detroit and other fortifications. Under terms negotiated in the 1794 Jay Treaty, Britain withdrew from Detroit and Michilimackinac in 1796. Questions remained over the boundary for many years, and the United States did not have uncontested control of the Upper Peninsula and Drummond Island until 1818 and 1847, respectively.