Where is Morocco?
Morocco is a country in Northern Africa, part of Africa. It shares land borders with 2 countries: Algeria and Spain. Its geographic centre lies at about 30° north and 9° west, in the Northern and Western Hemispheres. The CIA World Factbook describes its location as: “Northern Africa, bordering the North Atlantic Ocean and the Mediterranean Sea, between Algeria and Mauritania.”
Other countries close by include Mauritania, Portugal, Mali and Senegal.
Geography and climate
Terrain. Mountainous northern coast (Rif Mountains) and interior (Atlas Mountains) bordered by large plateaus with intermontane valleys, and fertile coastal plains; the south is mostly low, flat desert with large areas of rocky or sandy surfaces .
Climate. Mediterranean in the north, becoming more extreme in the interior; in the south, hot, dry desert; rain is rare; cold offshore air currents produce fog and heavy dew.
Natural hazards. In the north, the mountains are geologically unstable and subject to earthquakes; periodic droughts; windstorms; flash floods; landslides; in the south, a hot, dry, dust/sand-laden sirocco wind can occur during winter and spring; widespread harmattan haze exists 60% of time, often severely restricting visibility.
Major rivers. Draa - 1,100 km.
Geography note. Strategic location along Strait of Gibraltar; the only African nation to have both Atlantic and Mediterranean coastlines; the waters off the Atlantic coast are particularly rich fishing areas.
Geography text quoted from the CIA World Factbook (final 2026 edition, public domain).
Capital city: Rabat
The capital of Morocco is Rabat, at 34.01° N, 6.83° W.
Name origin. Derives from the Arabic name Ribat el-Fath, from the words ribat (fortified monastery) and fath (conquest); the third Almohad sultan, Abu Yusuf Yaqub al-Manṣur, gave the name to a fort on the site in the 12th century. (CIA World Factbook)
Flag of Morocco
Red with a green pentacle (five-pointed linear star) known as Sulayman's (Solomon's) seal in the center of the flag. Red and green are traditional colors in Arab flags, although the use of red is more commonly associated with the Arab states of the Persian Gulf. More about the flag of Morocco →
National symbols: Pentacle symbol, lion. National colours: red, green.
Independence and history
2 March 1956 (from France). (CIA World Factbook)