Morocco: cities by population
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²
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
| # | Place | Region | Population |
|---|---|---|---|
| 1 | Casablanca | Casablanca-Settat | 3,665,954 |
| 2 | Rabat | Rabat-Salé-Kénitra | 1,655,753 |
| 3 | Fes | Fes-Meknes | 1,191,905 |
| 4 | Tangier | Tanger-Tetouan-Al Hoceima | 1,035,141 |
| 5 | Marrakesh | Marrakesh-Safi | 995,871 |
| 6 | Salé | Rabat-Salé-Kénitra | 972,299 |
| 7 | Agadir | Souss-Massa | 698,310 |
| 8 | Meknes | Fes-Meknes | 568,295 |
| 9 | Oujda | Oriental | 539,711 |
| 10 | Kenitra | Rabat-Salé-Kénitra | 470,949 |
| 11 | Tétouan | Tanger-Tetouan-Al Hoceima | 415,810 |
| 12 | Al Hoceïma | Tanger-Tetouan-Al Hoceima | 395,644 |
| 13 | Temara | Rabat-Salé-Kénitra | 342,345 |
| 14 | Safi | Marrakesh-Safi | 336,883 |
| 15 | Mohammedia | Casablanca-Settat | 227,799 |
| 16 | Khouribga | Beni Mellal-Khenifra | 214,241 |
| 17 | El Jadida | Casablanca-Settat | 212,863 |
| 18 | Beni Mellal | Beni Mellal-Khenifra | 210,397 |
| 19 | Salé Al Jadida | Rabat-Salé-Kénitra | 200,000 |
| 20 | Ait Melloul | Souss-Massa | 187,652 |
| 21 | Nador | Oriental | 176,600 |
| 22 | Dar Bouazza | Casablanca-Settat | 165,295 |
| 23 | Taza | Fes-Meknes | 162,110 |
| 24 | Settat | Casablanca-Settat | 155,333 |
| 25 | Berrechid | Casablanca-Settat | 149,201 |
| 26 | Khemisset | Rabat-Salé-Kénitra | 143,640 |
| 27 | Inezgane | Souss-Massa | 142,320 |
| 28 | Ksar El Kebir | Tanger-Tetouan-Al Hoceima | 138,262 |
| 29 | Larache | Tanger-Tetouan-Al Hoceima | 136,505 |
| 30 | Guelmim | Guelmim-Oued Noun | 129,200 |
| 31 | Khenifra | Beni Mellal-Khenifra | 128,318 |
| 32 | Berkane | Oriental | 119,284 |
| 33 | Taourirt | Oriental | 112,908 |
| 34 | Bouskoura | Casablanca-Settat | 112,501 |
| 35 | Al Fqih Ben Çalah | Beni Mellal-Khenifra | 111,402 |
| 36 | Oued Zem | Beni Mellal-Khenifra | 104,029 |
| 37 | El Kelaa des Srarhna | Marrakesh-Safi | 103,982 |
| 38 | Sidi Slimane | Rabat-Salé-Kénitra | 101,541 |
| 39 | Errachidia | Drâa-Tafilalet | 100,870 |
| 40 | Guercif | Fes-Meknes | 99,238 |
| 41 | Oulad Teïma | Souss-Massa | 97,608 |
| 42 | Ben Guerir | Marrakesh-Safi | 96,777 |
| 43 | Ouislane | Fes-Meknes | 95,995 |
| 44 | Tiflet | Rabat-Salé-Kénitra | 94,684 |
| 45 | Lqoliaa | Souss-Massa | 90,890 |
| 46 | Taroudant | Souss-Massa | 87,520 |
| 47 | Sefrou | Fes-Meknes | 87,234 |
| 48 | Essaouira | Marrakesh-Safi | 85,137 |
| 49 | Fnidek | Tanger-Tetouan-Al Hoceima | 84,558 |
| 50 | Sidi Kacem | Rabat-Salé-Kénitra | 82,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.