The capitals of Africa

This is the continent that has relocated its capitals most since independence. Understanding why means learning half the list without effort.

Reference · 54 countries · game data, updated August 2026

An African capitals quiz nearly always fails at the same point: you answer with the best-known city, and that is exactly the one that lost the title. Lagos, Dar es Salaam, Abidjan, Yaoundé — each remains its country's economic hub, but none is still the political capital, or ever was.

The capitals built from scratch

After independence, several states built a new capital inland, away from the ports inherited from colonisation. The motive is almost always the same: rebalance the country and defuse regional rivalries.

Nigeria inaugurated Abuja in 1991, at the country's geographic centre, halfway between the Muslim north and the Christian south — Lagos, fifteen million people, has not been the capital for over thirty years. Tanzania officially transferred its seat to Dodoma, in the centre of the country, even though Dar es Salaam long remained the city of ministries. Côte d'Ivoire made Yamoussoukro, President Houphouët-Boigny's birth village, its official capital in 1983 — yet Abidjan still concentrates the activity and the embassies.

The South African case

South Africa has not one capital but three, a legacy of the 1910 compromise between the four founding colonies: Pretoria for the executive, Cape Town for the legislature, Bloemfontein for the judiciary. Quizzes — GeoG included — keep Pretoria, the seat of government.

Benin presents a similar ambiguity: Porto-Novo is the constitutional capital, Cotonou the actual seat of government.

The complete list

The 54 countries of Africa and their capital.

CountryCapital
South AfricaPretoria
AlgeriaAlgiers
AngolaLuanda
BeninPorto-Novo
BotswanaGaborone
Burkina FasoOuagadougou
BurundiGitega
CameroonYaoundé
ComorosMoroni
Republic of the CongoBrazzaville
DR CongoKinshasa
Ivory CoastYamoussoukro
DjiboutiDjibouti
EgyptCairo
EritreaAsmara
EthiopiaAddis Ababa
GabonLibreville
GambiaBanjul
GhanaAccra
GuineaConakry
Equatorial GuineaCiudad de la Paz
Guinea-BissauBissau
MauritiusPort Louis
Cape VerdePraia
KenyaNairobi
LesothoMaseru
LiberiaMonrovia
LibyaTripoli
MadagascarAntananarivo
MalawiLilongwe
MaliBamako
MoroccoRabat
MauritaniaNouakchott
MozambiqueMaputo
NamibiaWindhoek
NigerNiamey
NigeriaAbuja
UgandaKampala
Central African RepublicBangui
RwandaKigali
São Tomé and PríncipeSão Tomé
SenegalDakar
SeychellesVictoria
Sierra LeoneFreetown
SomaliaMogadishu
SudanKhartoum
South SudanJuba
EswatiniMbabane
TanzaniaDodoma
ChadN'Djamena
TogoLomé
TunisiaTunis
ZambiaLusaka
ZimbabweHarare

Frequently asked

What is the capital of Nigeria?
Abuja, since 1991. Lagos, by far the largest city in the country and in Africa, is no longer the capital.
How many capitals does South Africa have?
Three: Pretoria (executive), Cape Town (legislative) and Bloemfontein (judicial). The expected quiz answer is Pretoria.
What is the capital of Côte d’Ivoire?
Yamoussoukro, the official capital since 1983. Abidjan remains the economic capital and hosts most embassies.

Do you remember these capitals?

GeoG's Capitals mode plays continent by continent: run Africa on its own, or all 195 countries of the world.

Play now

Read next