The Spanish captured Mobile during the American Revolutionary War during the Battle of Fort Charlotte in 1780, and retained Mobile by the terms of the war-ending Treaty of Paris in 1783. Mobile was then part of the colonial province "Florida Occidental" for thirty years, controlled from Pensacola until 1813 when it was captured by American forces (during the War of 1812) under James Wilkinson.