Mobile was founded as the capital of colonial French Louisiana in 1702 and remained a part of New France for over 60 years. During 1720, when France warred with Spain, Mobile was on the battlefront, so the capital moved west to Biloxi. In 1763, Britain took control of the colony following their victory in the Seven Years' War. During the American Revolutionary War, the Spanish captured Mobile and retained it by the terms of the Treaty of Paris in 1783.