Population Statistics
HomeWorldMorocco

Morocco: cities by population

By James Burfield, SEO consultant, Bath · Page updated · UN World Population Prospects

Morocco has a population of 38,762,441 (UN estimate, 2026), with Rabat as its capital. The 50 largest of its 389 recorded towns and cities, ranked.

+36%
since 2000 (28,423,435)
+12%
projected by 2050 (43,440,431)
87
people per km²
19501975200020252050 8.9M 43.4M
UN estimates to 2026; the dashed line is the medium-variant projection to 2050, a forecast rather than a measurement. Source: World Population Prospects 2024.
Full UN series, 1950 to 2050
YearPopulation
19508,935,450
197517,150,786
200028,423,435
200530,358,144
201032,467,016
201534,607,588
202036,584,208
202538,430,770
202638,762,441
2030 projected39,953,460
2050 projected43,440,431

Medium variant. Figures from 2026 onward are projections, not measurements.

Figures are the latest available in GeoNames (CC BY 4.0), which draws on national censuses of varying dates — treat them as recent, not same-year. Country totals are UN World Population Prospects 2024 (medium variant) where the UN lists the country separately; the handful it reports under a parent state keep a GeoNames figure and are marked as such. Sources & method.

Largest cities in Morocco

#PlaceRegionPopulation
1CasablancaCasablanca-Settat3,665,954
2RabatRabat-Salé-Kénitra1,655,753
3FesFes-Meknes1,191,905
4TangierTanger-Tetouan-Al Hoceima1,035,141
5MarrakeshMarrakesh-Safi995,871
6SaléRabat-Salé-Kénitra972,299
7AgadirSouss-Massa698,310
8MeknesFes-Meknes568,295
9OujdaOriental539,711
10KenitraRabat-Salé-Kénitra470,949
11TétouanTanger-Tetouan-Al Hoceima415,810
12Al HoceïmaTanger-Tetouan-Al Hoceima395,644
13TemaraRabat-Salé-Kénitra342,345
14SafiMarrakesh-Safi336,883
15MohammediaCasablanca-Settat227,799
16KhouribgaBeni Mellal-Khenifra214,241
17El JadidaCasablanca-Settat212,863
18Beni MellalBeni Mellal-Khenifra210,397
19Salé Al JadidaRabat-Salé-Kénitra200,000
20Ait MelloulSouss-Massa187,652
21NadorOriental176,600
22Dar BouazzaCasablanca-Settat165,295
23TazaFes-Meknes162,110
24SettatCasablanca-Settat155,333
25BerrechidCasablanca-Settat149,201
26KhemissetRabat-Salé-Kénitra143,640
27InezganeSouss-Massa142,320
28Ksar El KebirTanger-Tetouan-Al Hoceima138,262
29LaracheTanger-Tetouan-Al Hoceima136,505
30GuelmimGuelmim-Oued Noun129,200
31KhenifraBeni Mellal-Khenifra128,318
32BerkaneOriental119,284
33TaourirtOriental112,908
34BouskouraCasablanca-Settat112,501
35Al Fqih Ben ÇalahBeni Mellal-Khenifra111,402
36Oued ZemBeni Mellal-Khenifra104,029
37El Kelaa des SrarhnaMarrakesh-Safi103,982
38Sidi SlimaneRabat-Salé-Kénitra101,541
39ErrachidiaDrâa-Tafilalet100,870
40GuercifFes-Meknes99,238
41Oulad TeïmaSouss-Massa97,608
42Ben GuerirMarrakesh-Safi96,777
43OuislaneFes-Meknes95,995
44TifletRabat-Salé-Kénitra94,684
45LqoliaaSouss-Massa90,890
46TaroudantSouss-Massa87,520
47SefrouFes-Meknes87,234
48EssaouiraMarrakesh-Safi85,137
49FnidekTanger-Tetouan-Al Hoceima84,558
50Sidi KacemRabat-Salé-Kénitra82,632

Twenty years earlier: Morocco in the 2005 World Gazetteer — population then 29,828,879.

Common questions

What is the population of Morocco?
Morocco has a population of 38,762,441, the UN World Population Prospects estimate for 2026. The UN's medium-variant projection for 2050 is 43,440,431 — a forecast, not a measurement.
What is the capital of Morocco?
Rabat. The largest place we record there is Casablanca, with 3,665,954 people.

Go deeper

Casablanca
The largest place we record in Morocco: 3,665,954 people
Morocco in 2005
The World Gazetteer's archive edition: 29,828,879 then
All 246 countries
Every country and territory, ranked by population