Skip to content
Map of Morocco and its neighbours in North Africa and Southern Europe

Geography · Travel guide

Where is Morocco?

Morocco on the world map: where it is, which countries are its neighbours, how far it is from Europe, its main regions and how to get there.

Where is Morocco? Its location on the world map, neighbours, regions, main cities, distances and how to travel there.

Written by the Highlights Morocco Tours team in Marrakech

The short answer

Morocco is a country in North Africa, in the north-west corner of the African continent. It has coasts on the Atlantic Ocean and the Mediterranean Sea, it borders Algeria to the east and Mauritania to the south, and it is only about 14 kilometres from Spain across the Strait of Gibraltar. The capital is Rabat, the largest city is Casablanca and the most visited city is Marrakech. Morocco is in Africa, not in Europe, and it uses GMT+1 as its time zone.

If you are planning a trip, you probably want to know more than a dot on the map: how far Morocco is from Europe, which countries are next door, where the desert and the mountains are, and how long it takes to get from one city to another. This guide answers all of that with two maps and a few simple tables. When you want help planning, message us on WhatsApp and we plan it for you.

Morocco on the world map

World map showing where Morocco isMorocco, highlighted in gold, is in North Africa, in the north-west corner of the African continent, just south of Spain across the Strait of Gibraltar.MOROCCOAFRICAEUROPEASIANORTH AMERICASOUTH AMERICAATLANTIC OCEANINDIAN OCEANPACIFIC OCEANAUSTRALIA
Morocco, in gold, in the north-west corner of Africa, just south of Spain.

On the world map, look at the north-western corner of Africa, where the Atlantic Ocean meets the Mediterranean Sea. That is Morocco. It is at roughly 32 degrees north and 6 degrees west, which puts it at about the same latitude as the southern United States, and at about the same longitude as Portugal and the United Kingdom. This is why Morocco has such a varied climate, with snow in the mountains, a green coast and a desert in the south-east.

Is Morocco in Africa, Europe or the Arab world?

Morocco is in Africa. At the narrowest point of the Strait of Gibraltar the distance to Spain is only about 14 kilometres, so from Tangier you can see the coast of Europe on a clear day, but the country is part of the African continent. Culturally Morocco is also part of the Arab world and the Maghreb, together with Algeria and Tunisia, and it has strong Amazigh (Berber) roots, Andalusian influence and a long history of trade with Europe and sub-Saharan Africa.

QuestionAnswer
ContinentAfrica
RegionNorth Africa and the Maghreb
Distance to EuropeAbout 14 km across the Strait of Gibraltar
Seas and oceansThe Atlantic Ocean and the Mediterranean Sea
Closest European countrySpain

Morocco and its neighbours

Map of Morocco and its neighboursMorocco borders Algeria to the east and Western Sahara to the south, with the Atlantic Ocean to the west and the Mediterranean Sea to the north. Spain lies 14 kilometres north across the Strait of Gibraltar.TangierRabatCasablancaFesMarrakechMerzougaAgadirSPAINALGERIAMAURITANIAPORTUGALATLANTIC OCEANMEDITERRANEAN SEATUNISIA
Morocco and its neighbours: Spain to the north, Algeria to the east and Mauritania to the south.
NeighbourWhereNotes
SpainNorth, across the Strait of GibraltarSpain also has Ceuta and Melilla on the Moroccan coast
AlgeriaEastThe land border has been closed for many years
MauritaniaSouthReached through the south of the country
Atlantic OceanWestBeaches, surf towns and Essaouira
Mediterranean SeaNorthTangier, Tetouan and the Rif coast

Because Morocco faces two seas and borders the desert, the journey from the north coast to the Sahara crosses very different landscapes in a few days. For a route that follows this line, see our 5-day Tangier to Marrakech tour and the 5-day Marrakech to Tangier tour via Merzouga.

Want to see the best of Morocco?

Tell us your dates and group size. We reply with a free quote and ideas for your itinerary.

Geography and regions of Morocco

RegionWhat it is likeWhere to go
The north and the RifGreen mountains and the Mediterranean coastTangier, Tetouan and Chefchaouen
The Atlantic coastBeaches, ports and large citiesCasablanca, Rabat and Essaouira
The imperial citiesMedinas and historyFes, Meknes, Marrakech and Rabat
The Atlas MountainsThe High Atlas peaks, valleys and Berber villagesImlil, Ourika and Ouzoud
The south and the SaharaKasbahs, palm groves and golden dunesOuarzazate, Dades, Zagora and Merzouga

The High Atlas is the backbone of the country, and its highest peak, Toubkal, reaches 4,167 metres, which makes it the highest mountain in North Africa. South of the Atlas, the land dries out into the valleys of the Draa and the Ziz and the dunes of the Sahara. To the north, the Middle Atlas and the Rif mountains catch the rain and the snow. Read our guides to snow in Morocco and the Atlas Mountains day trip from Marrakech.

Main cities and distances in Morocco

CityWhere it isDistance and travel
RabatAtlantic coast, capitalAbout 90 km from Casablanca
CasablancaAtlantic coast, largest cityAbout 240 km north of Marrakech
MarrakechCentre-south, at the foot of the AtlasAbout 560 km from Merzouga
FesNorth, inlandAbout 300 km from Tangier
TangierThe Strait of GibraltarAbout 120 km from Chefchaouen
EssaouiraAtlantic coastAbout 175 km from Marrakech
MerzougaSouth-east, at the dunes of Erg ChebbiAbout 460 km from Fes

Distances are approximate road distances, and travel times depend on traffic and the mountain roads. Morocco is a big country, so plan at least a week for the main sights, or two weeks if you want to include the north and the coast. See our Morocco itineraries and guides to Marrakech and Fes.

Morocco and Spain: the Strait of Gibraltar

The Strait of Gibraltar is the narrow sea between Morocco and Spain, and it joins the Atlantic Ocean with the Mediterranean. At the narrowest point it is only about 14 kilometres wide, and on a clear day you can see the hills of Spain from Tangier and the mountains of Morocco from Tarifa. Cap Spartel, a headland west of Tangier with a lighthouse, is often described as the place where the two seas meet. Ferries cross every day, which is why many travellers combine a trip to southern Spain with a few days in Morocco. This is also why the north of Morocco is on the path of the total solar eclipse of 2 August 2027, which you can read about in our guide to the solar eclipse 2027 in Morocco.

Climate by location

PlaceWhat the weather is likeBest season
Mediterranean northMild and wetter in winter, warm and dry in summerSpring and autumn
Atlantic coastCooler summers thanks to the ocean breeze, mild wintersMost of the year
Inland citiesHot summers and cooler wintersSpring and autumn
Atlas MountainsCool in summer, cold and snowy in winterSpring, summer and autumn for walking
The SaharaVery hot summer days, cold winter nightsSpring and autumn

Location explains the weather. The ocean cools the coast, the mountains collect the snow and the desert is hot and dry. You can swim in the morning, see snow in the afternoon and sleep in the desert the following night if you plan it well. Read our best time to visit Morocco for a month-by-month view.

Where are the main places to visit?

A one-week route across Morocco

DayWhereWhy
Day 1MarrakechThe medina and the main square
Day 2Ait Ben Haddou and the Dades ValleyA UNESCO ksar and kasbahs
Day 3MerzougaA camel ride and a night in the Sahara
Day 4FesThe oldest medina in the country
Day 5ChefchaouenThe blue town in the Rif mountains
Day 6TangierThe Strait of Gibraltar and Cap Spartel
Day 7Departure or the ferry to SpainThe end of the trip

This is the line of our 5-day Marrakech to Tangier tour via Merzouga, which crosses the country from south to north without repeating a road. For the best desert routes, read Morocco desert tours.

Why the location makes Morocco special

Morocco sits where Africa, Europe and the Atlantic meet, and that shows in everything: the food, the architecture, the languages and the landscape. It is a short flight from Europe, so a long weekend is possible, and it is big enough for a three-week journey. In a few days you can walk through a thousand-year-old medina, drive over the highest mountains of North Africa, taste Atlantic fish, sleep in a desert camp and watch the sun set over the ocean. For travellers, that variety is the reason to come, and the reason to take your time.

How to get to Morocco

  • By air: the main airports are Marrakech, Casablanca, Fes, Tangier, Agadir and Rabat, with direct flights from many European cities. Flights take about two hours from Madrid and about three and a half hours from London.
  • By ferry: fast ferries cross from Tarifa in Spain to Tangier in about an hour, and from Algeciras to Tangier Med.
  • From North America: flights to Casablanca take roughly seven to eight hours from the east coast.
  • Entry rules: they depend on your nationality, so check the official requirements before you travel.

Once you arrive, a private driver is the easiest way to see several regions in a few days. See our guide to the best time to visit Morocco, the time in Morocco and Morocco tour costs.

Morocco quick facts

FactDetail
Official nameKingdom of Morocco
CapitalRabat
Largest cityCasablanca
PopulationAbout 37 million
LanguagesArabic and Amazigh, with French widely spoken and Spanish in the north
CurrencyMoroccan dirham
Time zoneGMT+1 (GMT+0 during Ramadan)
Calling code+212
DrivingOn the right

For money, tipping and prices, read our guide to Morocco currency, money and tipping. To understand whether it is a good moment to travel, read is Morocco safe for tourists.

Tours with Highlights Morocco Tours

We plan private tours with a driver and a local guide, and we adapt every route to your dates and your pace.

Ready to explore Morocco?

Send your dates and we reply with a free, no-obligation quote.

Where is Morocco: frequently asked questions

Where is Morocco located?

Morocco is a country in North Africa, in the north-west corner of the African continent. It has coasts on the Atlantic Ocean to the west and the Mediterranean Sea to the north, and it borders Algeria to the east and Mauritania to the south.

Is Morocco in Africa or Europe?

Morocco is in Africa. It is only about 14 kilometres from Spain across the Strait of Gibraltar, so Europe is visible from the northern coast on a clear day, but the country belongs to the African continent.

Which countries border Morocco?

Morocco borders Algeria to the east and Mauritania to the south. Spain has two small territories on the Moroccan coast, Ceuta and Melilla, and also lies across the Strait of Gibraltar to the north.

How far is Morocco from Spain?

At the narrowest point, the Strait of Gibraltar is about 14 kilometres wide. Fast ferries cross from Tarifa in Spain to Tangier in about an hour, and from Algeciras to Tangier Med in a similar time.

What is the capital of Morocco?

The capital of Morocco is Rabat. The largest city and the main business centre is Casablanca, and Marrakech is the most visited city for tourism.

Where is Casablanca in Morocco?

Casablanca is on the Atlantic coast in the north-west of Morocco, about 90 kilometres south-west of Rabat, and about 240 kilometres north of Marrakech.

Where is the Sahara desert in Morocco?

The Moroccan Sahara is in the south-east of the country, close to the Algerian border. The best-known dunes are Erg Chebbi at Merzouga, roughly 560 kilometres from Marrakech, and the dunes near Zagora and M'Hamid.

How do I get to Morocco?

Most travellers fly to Marrakech, Casablanca, Fes, Tangier or Agadir, and there are direct flights from many European cities. You can also take a ferry from Spain to Tangier. Check the entry rules for your nationality before you travel.

What is the time zone in Morocco?

Morocco is on GMT+1 all year, except during Ramadan, when it moves back to GMT+0. See our live clock and guide to the time in Morocco.

What is the best time to visit Morocco?

Spring (March to May) and autumn (September to November) are the most comfortable for most trips. Summer is very hot inland and in the desert, and winter is cold in the mountains and at night in the Sahara. See our best time to visit Morocco guide.

How do I book with Highlights Morocco Tours?

Send us your dates and number of travellers with the contact form, by WhatsApp or by email. We reply with a free, no-obligation quote and, when you are happy with it, we confirm the booking.

Plan your trip to Morocco with us

Tell us your dates, who is travelling and what you would like to see. We reply with a free, no-obligation quote.

Contact Us

Plan your private Morocco trip

Tell us your dates and what you would like to see. We will reply with a free, no-obligation quote.

Get a Free Quote

Free quote · No obligation · We reply as soon as possible

Why travellers trust us

Real people, real local knowledge