History of Mobile, Alabama
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.
Source: Wikipedia — History of Mobile, Alabama (CC BY-SA 4.0)