List of former national capitals

Columns: Old capital city | Country | Today a part of | From | Until | Change , reason
Fez | Idrisid dynasty | Morocco | 808 | 927 | Moved to Hajar an-Nasar , to try and restore power base | Marrakesh | Almoravid dynasty , Almohad dynasty | Morocco | 1071 | 1244 | Moved to Fez | Fez | Marinid dynasty , Idrisid interlude , Wattasid dynasty | Morocco | 1244 | 1554 | Moved to Marrakesh | Marrakesh | Saadi dynasty | Morocco | 1554 | 1659 | Moved to Fez | Fez | Dila'ite interlude , Alaouite dynasty | Morocco | 1659 | 1672 | Moved to Meknes | Meknes | Morocco ( under Ismail Ibn Sharif ) | Morocco | 1672 | 1727 | Moved to Fez | Fez | Alaouite dynasty | Morocco | 1727 | 1912 | Moved to Rabat

Example questions:
What is the population of the West African city that was the capital of Ivory Coast from 1933 to 1983 ? | How far from the Atlantic Ocean is the African city that was the capital of Congo Free State from 1886 to 1908 ? | Which African city succeeded the city that was the capital of Belgian Congo from 1908 to 1926 ? | What was the former name of the African city that was the capital of Portuguese Cape Verde from 1462 to 1770 ?

Answers:
4.7 million | 100 km | Léopoldville | Ribeira Grande