Where is the country Morocco? Morocco is in North Africa, at the northwest corner of the continent. It is bordered by the Atlantic Ocean to the west and the Mediterranean Sea to the north, and it lies just across the Strait of Gibraltar from Spain. At the narrowest point, only about 14 km of sea separate Africa from Europe here. This guide explains Morocco’s location, its neighbours, its regions and how easy it is to reach for a trip.
Where Is Morocco Located on the Map?
Morocco is the westernmost country of the Maghreb, the region of North Africa that also includes Algeria and Tunisia. Its main features on the map are:
- North: the Mediterranean Sea and the Strait of Gibraltar, with Spain on the other side.
- West: a long Atlantic coastline, home to Casablanca, Rabat, Essaouira and Agadir.
- East: a land border with Algeria.
- South: the Sahara Desert extends across the south of the country.
Two small Spanish cities, Ceuta and Melilla, sit on Morocco’s Mediterranean coast.
What Continent Is Morocco In?
Morocco is in Africa. Because it is so close to Spain and shares a long history with Andalusia, many travelers feel it is a bridge between Africa, Europe and the Arab world.
What Time Zone Is Morocco In?
Morocco uses GMT+1 for most of the year and temporarily switches to GMT+0 during the month of Ramadan. Always check the current time before booking transfers.
Where Is Morocco? Geography in Brief
The Mountains
Four mountain ranges cross the country: the Rif in the north, and the Middle Atlas, High Atlas and Anti-Atlas further south. The High Atlas holds Jebel Toubkal (4,167 m), the highest peak in North Africa, only a short drive from Marrakech. See best time to visit the Atlas Mountains.
The Sahara Desert
Beyond the mountains, the land turns into stony plains and sand seas. The two most famous dune areas for visitors are Erg Chebbi near Merzouga and Erg Chigaga near M’hamid. Read Marrakech to the Sahara to understand distances.
The Coasts
Morocco has both a Mediterranean and an Atlantic coastline. The Atlantic side has surf towns, fishing ports and long beaches, while the Mediterranean side is greener and closer to Spain.
Main Cities: Where Is Morocco’s Capital and More
- Rabat: the capital, on the Atlantic coast.
- Casablanca: the largest city and economic centre. See things to do in Casablanca.
- Marrakech: at the foot of the High Atlas, in the centre-south. See our Marrakech travel guide.
- Fes: in the north-centre, the oldest of the imperial cities.
- Tangier: on the Strait of Gibraltar, the gateway from Spain.
- Chefchaouen: the blue town in the Rif Mountains.
- Agadir: the beach resort on the southern Atlantic coast. See trips from Agadir.

How Far Is Morocco from Other Countries?
Thanks to its location, Morocco is easy to reach:
- From Europe: direct flights from most major European cities take roughly 1 to 4 hours. Ferries also cross from southern Spain to Tangier.
- From North America: there are direct flights to Casablanca from cities such as New York, Washington, Miami and Montreal. See tours to Morocco from the USA.
- From the UK: many direct flights to Marrakech, Agadir and Fes. See Morocco tours from the UK.
Quick Facts About Morocco
- Capital: Rabat
- Official languages: Arabic and Tamazight (Berber); French is widely used
- Currency: Moroccan dirham (MAD)
- Government: constitutional monarchy
- Religion: mainly Islam
- Population: about 37 million (2024 census)
The Regions of Morocco for Travelers
The North: Tangier, Tetouan and Chefchaouen
The north faces Spain and the Mediterranean. It is greener, with the Rif Mountains, Andalusian-style medinas and the blue town of Chefchaouen. Explore our tours from Tangier.
The Imperial Cities: Fes, Meknes, Rabat and Marrakech
These four cities have all served as royal capitals. Fes and Marrakech have the most famous medinas, while Rabat combines history with a modern capital. See our tours from Fes.
The Atlas Mountains
The High Atlas runs like a wall between Marrakech and the desert. Berber villages, valleys and trekking trails start barely an hour from the city. Read Atlas Berber villages.
The South: Ouarzazate, the Gorges and the Sahara
South of the mountains lie kasbahs, palm oases and the dunes of Merzouga and Erg Chigaga. This is where Morocco feels most like a film set. See Morocco desert tours.
The Atlantic Coast: Casablanca, Essaouira and Agadir
The west coast has the biggest city, Casablanca, the artistic port of Essaouira and the beach resort of Agadir. See our tours from Casablanca.
Climate: How Location Shapes the Weather
Because Morocco sits between the Atlantic, the Mediterranean, high mountains and the Sahara, the weather changes a lot from one region to the next on the same day:
- Coast: mild all year, cooled by ocean breezes.
- Marrakech and Fes: hot summers and mild, sunny winters with cold nights.
- Atlas Mountains: snow on the high peaks in winter, fresh in summer.
- Sahara: very hot days in summer, cold nights in winter. See Merzouga weather.
How to Get to Morocco
By Air
The main international airports are Casablanca Mohammed V (CMN) and Marrakech Menara (RAK), with more flights to Fes, Tangier, Agadir and Rabat. If you land in Casablanca, read Casablanca airport to city.
By Sea from Spain
Ferries cross the Strait of Gibraltar to Tangier from Tarifa and Algeciras, making Morocco an easy add-on to a holiday in Andalusia. From Tangier you can start a 8-day tour from Tangier to Marrakech.
How to Travel Around Morocco
Trains connect Tangier, Rabat, Casablanca, Fes and Marrakech. Buses reach most towns. For the mountains, kasbahs and desert, most visitors use a private driver, which is the most flexible and comfortable way to cover the long distances. See private driver in Morocco and Marrakech to Fes distance.
Good to Know Before You Travel
Morocco’s location gives it a lot of variety in a short distance. In a single week you can go from the Atlantic coast to snowy peaks and the Sahara. Our 7-day Morocco itinerary shows how. For practical advice, read our Morocco travel tips and check the best time to visit Morocco.
FAQ
Is Morocco in Africa or the Middle East?
Morocco is in North Africa. It is part of the Arab world and the Maghreb, but geographically it is not in the Middle East.
Where is Morocco compared to its neighbours?
Morocco shares a land border with Algeria to the east, and borders the Spanish cities of Ceuta and Melilla on the Mediterranean coast.
How close is Morocco to Spain?
At the Strait of Gibraltar, Morocco is about 14 km from Spain. Ferries between Tarifa and Tangier take roughly one hour.
Is Morocco a good travel destination?
Yes. Morocco offers culture, food, mountains, beaches and desert in one country, and it is close to Europe. Read is Morocco safe for practical safety advice.
Ready to plan? Tell us your dates, group size and interests and our local team will send you a free, tailor-made itinerary. Request your free quote or message us on WhatsApp.



