Travel From Madrid to Marrakech: Every Way to Get There
Madrid and Marrakech are only about 1,000 kilometers apart, yet they feel like two different worlds: the elegant boulevards and tapas bars of the Spanish capital on one side, the red walls, souks and snowy Atlas views of Marrakech on the other. The good news is that traveling between these two fascinating cities is easy, and you can choose between a quick two-hour flight or an memorable overland journey by train and ferry across the Strait of Gibraltar.
Here is every way to travel from Madrid to Marrakech: direct flights, train and ferry, bus, driving your own car, and combinations with stops in Andalusia, Tangier or Fes. We compare time, cost and comfort, and share the practical tips our team gives to travelers coming from Spain, from passport control on the ferry to the time difference that confuses so many visitors.
Madrid to Marrakech at a Glance
| Option | Total time | Approximate cost | Best for |
|---|---|---|---|
| Direct flight | About 2 hours in the air, 4 to 5 hours door to door | From about €40 to €200+ one way | Speed and simplicity |
| Train + ferry + train | About 1.5 to 2 days with a night stop | About €100 to €200 | Slow travel and adventure |
| Bus + ferry + bus/train | About 20 to 30 hours | Often the cheapest overland option | Tight budgets |
| Driving your own car | About 2 days with a night stop | Fuel, tolls and car ferry | Road trips and flexibility |
| Fly to another Moroccan city | Varies | Varies | Combining Tangier, Fes or Casablanca with Marrakech |
Madrid and Marrakech: A Shared History
The link between Madrid and Morocco is older than most people think. Madrid itself began as a small fortress called Mayrit, built in the 9th century during the time of Al-Andalus, when much of the Iberian Peninsula was ruled by Muslim dynasties. Later, the Almoravid and Almohad dynasties, both born in Morocco, ruled large parts of Spain and North Africa from their capital in Marrakech.
You can still see this connection in the monuments. The Koutoubia minaret in Marrakech and the Giralda in Seville were built by the same Almohad dynasty and look like sisters. Traveling from Madrid to Marrakech is, in a way, following a road that people have traveled for more than a thousand years. Read more in our guide Is Morocco in Europe?.
Option 1: Direct Flights From Madrid to Marrakech
Flying is the fastest and usually the easiest way. Direct flights leave from Madrid-Barajas (MAD) and land at Marrakech Menara (RAK) after about 1 hour 45 minutes to 2 hours. Several airlines operate the route, including Ryanair, Iberia (and Iberia Express), Air Europa and, depending on the season, other carriers. There are flights almost every day, and more in high season. Morning departures are popular because you arrive in Marrakech in time for lunch and an afternoon in the souks, while evening flights are perfect after a working day in Madrid.
| Detail | Info |
|---|---|
| Distance | About 1,065 km |
| Flight time | About 1h45 to 2h05 |
| Main airlines | Ryanair, Iberia/Iberia Express, Air Europa |
| Price range | From around €40 one way on low-cost sales, often €80 to €200 |
| Airport in Marrakech | Menara, about 15 to 20 minutes from the medina |
Tips for Flying From Madrid
- Book early for holidays like Semana Santa, the Constitution bridge in December and summer.
- Check the terminal at Barajas: low-cost and traditional airlines use different terminals.
- Watch baggage rules on low-cost airlines; carpets and lanterns bought in Marrakech can be heavy on the way back.
- Arrive early: flights to Morocco leave the Schengen area, so you pass through passport control.
- Fill in your arrival details on the plane or at the airport if requested.
From Marrakech Airport to the Medina
Menara Airport is very close to the city. A petit taxi or airport taxi takes about 15 to 20 minutes to the medina; agree on the price before you get in or check the official taxi board. There is also an airport bus to Jemaa el-Fnaa. Many riads offer airport transfers, which is the easiest option because cars cannot enter the narrow streets of the medina and someone needs to guide you to the door. If you arrive late at night, a pre-booked transfer is strongly recommended, and remember to withdraw some dirhams at the airport ATM before leaving.
Option 2: Train and Ferry Across the Strait of Gibraltar
If you love slow travel, this is one of the finest ways to arrive in Africa. You cross Spain by train, sail across the Strait of Gibraltar, and continue by Moroccan train to Marrakech. It takes longer, but you see the landscapes change from Castilian plains to Andalusian hills, then the coast of Africa appearing across the water.
Step 1: Madrid to Algeciras by Train
Renfe runs direct trains from Madrid Atocha to Algeciras, at the southern tip of Spain, in about 5.5 to 6 hours. There are only a few direct trains per day, so book in advance. Another option is the high-speed AVE to Málaga (about 2.5 hours), then a bus or train to Algeciras or Tarifa.
Step 2: The Ferry to Morocco
| Ferry route | Arrival port | Crossing time | Good to know |
|---|---|---|---|
| Algeciras – Tanger Med | Tanger Med port, about 40 km east of Tangier city | About 1.5 hours | Many daily departures, main route for cars and trucks |
| Tarifa – Tangier Ville | Tangier city center port | About 1 hour | Ideal for foot passengers; the train station is close |
From Algeciras, a bus connects to Tarifa in about 40 minutes. The Tarifa–Tangier Ville ferry is the favorite of foot passengers because it arrives in the center of Tangier, close to the medina and the train station. Ferry tickets usually cost around €30 to €50 per person one way. On a clear day, stand on the deck to watch the Rock of Gibraltar behind you and the mountains of Morocco in front: a special moment between two continents.
Passport Control on the Ferry: A Useful Tip
On many ferries between Spain and Morocco, Moroccan passport control takes place on board during the crossing. Look for the police counter as soon as you board, often near the reception or lounge, and get your passport stamped before arrival. If you forget, you may have to wait at the port when you arrive. This is one of the most common surprises for first-time travelers. Keep your passport, ferry ticket and the address of your first hotel ready, because the officer may ask where you are staying in Morocco.
Step 3: Tangier to Marrakech by Train
From Tangier, you have two main choices:
- Daytime trains: take Africa’s high-speed train Al Boraq to Kenitra, Rabat or Casablanca, then a classic train to Marrakech. Total time is about 5 to 6 hours.
- Night train: a train with couchettes runs between Tangier and Marrakech overnight, taking about 10 hours. It saves one hotel night.
Read our full guide to traveling by train in Morocco and our guide where is Tangier.
How Long Does the Overland Route Take?
In theory, it is possible in one very long day, but we recommend breaking the journey. A comfortable and relaxed plan is: Madrid to Algeciras or Tarifa on day one, sleep in Tarifa or cross to Tangier in the evening, and continue to Marrakech the next day, ideally with a night in Tangier, Chefchaouen or Fes on the way.
Ferry Booking Tips
- Several companies operate the crossings, including FRS, Baleària and others. Compare times and prices.
- Book online in high season; in low season you can often buy at the port.
- Arrive early: at least 1 hour before departure for foot passengers, 2 hours or more with a car.
- Check the arrival port: Tangier Ville (city center) and Tanger Med (40 km away) are very different.
- Rough sea: crossings can be cancelled or delayed in strong wind, especially from Tarifa. Keep a flexible plan.
- Seasickness: if you are sensitive, take medicine before departure and stay on the outside deck.
Arriving at Tangier Ville or Tanger Med: What Next?
Tangier Ville is the easiest arrival for foot passengers. You walk out of the port into the city, a few minutes from the medina, and the main train station Tanger Ville is a short taxi ride away. You can spend the night in Tangier or take a train south the same day.
Tanger Med is a huge modern port, about 40 kilometers east of Tangier. It is designed mainly for cars and trucks. Foot passengers usually take a shuttle bus or a taxi to Tangier city, which takes about 45 minutes to an hour. If you arrive here, plan extra time before your train.
Crossing the Strait in Summer
Every summer, millions of Moroccans living in Europe travel home for the holidays, many by car through Spain. Ports like Algeciras, Tarifa and Tanger Med become extremely busy, especially at the beginning of July and the end of August. Spain and Morocco organize special operations to manage the traffic, but queues can still last hours. If you travel in summer, book your ferry early, avoid weekends and the busiest dates, or simply fly.
Is the Overland Route Worth It?
Honestly, if you only have a few days, the flight is the smarter choice. But if you have a week or more, the overland route is one of the most memorable travel experiences you can have in this part of the world. Watching the mountains of the Rif rise from the sea, hearing the first call to prayer in Tangier just one hour after leaving Spain, and slowly traveling south through blue Chefchaouen and ancient Fes gives you a much deeper understanding of Morocco than landing directly in Marrakech.
It is also a more sustainable way to travel, with fewer emissions than flying. Many of our travelers combine the two: they travel overland on the way in, and fly back from Marrakech to Madrid at the end of the trip to save time.
Option 3: By Bus and Ferry
Buses are the cheapest way to travel overland. Bus companies connect Madrid with Algeciras, Tarifa and Málaga, and some international lines run from Madrid all the way to Moroccan cities with the ferry included. In Morocco, CTM and Supratours buses connect Tangier with Marrakech. The journey is long, often more than 20 hours, but it can be very cheap. Bring snacks, water, a jacket for the air conditioning and patience. Night buses save a hotel night, but you will arrive tired, so plan an easy first day. Bus stations in Morocco are busy, so keep an eye on your luggage and only use official ticket counters.
Option 4: Driving From Madrid to Marrakech
Driving is a great option if you want freedom, or if you plan a long road trip through Morocco. The route is simple: drive south from Madrid to Algeciras (about 650 km, 6 to 7 hours), take a car ferry to Tanger Med, and drive about 580 km on the toll highway to Marrakech (about 6 to 7 hours).
- Car documents: bring your registration papers and an insurance green card valid for Morocco, or buy insurance at the port.
- Rental cars: most Spanish rental companies do not allow cars to enter Morocco. It is usually easier to rent a car in Morocco.
- Temporary import: your car is registered at Moroccan customs when you arrive and must leave with you.
- Summer traffic: in July and August, millions of Moroccans living in Europe cross the strait, and ports can be extremely busy.
- Roads: Moroccan highways are modern; drive carefully on secondary roads and in cities, where scooters, pedestrians and donkey carts share the road.
Option 5: Fly to Another Moroccan City First
Sometimes the best trip is not a straight line. From Madrid, you can also fly directly to cities like Tangier, Fes, Casablanca or Agadir, depending on the season and airline. Many travelers fly to Fes or Tangier, explore the north, travel through the desert, and finish in Marrakech before flying back to Madrid. This avoids backtracking and lets you see much more of the country. Look for “open-jaw” tickets, where you fly into one city and out of another; they are often similar in price to a simple return ticket and save you a full day of driving back.
| Plan | Route | Why it works |
|---|---|---|
| North to south | Madrid – Tangier, then Chefchaouen, Fes, Sahara, Marrakech – Madrid | See the whole country without backtracking |
| Imperial cities | Madrid – Fes, then Meknes, Rabat, Casablanca, Marrakech – Madrid | Culture and history |
| Desert loop | Madrid – Marrakech, then Sahara, Fes – Madrid | The classic first-time route |
Stops Worth Making on the Overland Route
If you travel by land, do not rush. Some of the most beautiful places in Spain and Morocco are on the way:
In Spain
- Córdoba: the Mezquita, one of the finest monuments of Al-Andalus.
- Granada: the Alhambra palace, a masterpiece of Islamic architecture.
- Seville: the Giralda and the Alcázar.
- Tarifa: a windy surf town at the southern tip of Europe, with views of Morocco.
In Morocco
- Tangier: the gateway to Africa, with its medina, kasbah and Cap Spartel.
- Asilah: a whitewashed seaside town with colorful murals.
- Chefchaouen: the famous Blue City in the Rif Mountains. Read our guide to the Blue City.
- Fes: the oldest medina in the world.
- Rabat: the calm capital, with the Hassan Tower and the Kasbah of the Udayas.
For more ideas, see our guides travel from Spain to Morocco and travel to Spain, Portugal and Morocco.
Time Difference Between Madrid and Marrakech
This is the detail that surprises many travelers. Spain changes its clocks in summer, but Morocco does not, and Morocco also moves its clocks back during Ramadan.
| Period | Spain | Morocco | Difference |
|---|---|---|---|
| Winter | UTC+1 | UTC+1 | Same time |
| Summer | UTC+2 | UTC+1 | Morocco is 1 hour behind |
| Ramadan in winter | UTC+1 | UTC+0 | Morocco is 1 hour behind |
| Ramadan in summer | UTC+2 | UTC+0 | Morocco is 2 hours behind |
Important: ferry and flight tickets show local times. A ferry leaving Tarifa at 10:00 Spanish time can arrive in Tangier at 10:00 Moroccan time in summer, even though the crossing takes one hour. Always check which time zone your ticket uses.
Documents and Entry Requirements
- EU citizens and many other nationalities can enter Morocco without a visa for up to 90 days. Check the rules for your passport.
- Passport: you need a valid passport. A Spanish or European ID card is not enough for Morocco.
- Non-EU residents of Spain should check whether they need a Moroccan visa and make sure their Spanish residence card allows re-entry.
- Money: you cannot buy Moroccan dirhams in Spain easily. Bring euros and change them in Morocco, or use ATMs. Read our guide to the Moroccan dirham.
Sample Itineraries From Madrid
Long Weekend: 4 Days in Marrakech
| Day | Plan |
|---|---|
| Day 1 | Morning flight from Madrid, afternoon in the souks, sunset at Jemaa el-Fnaa |
| Day 2 | Jardin Majorelle, Dar El Bacha, Bahia Palace, hammam |
| Day 3 | Day trip to the Atlas Mountains (Imlil or Ourika) or the Agafay Desert |
| Day 4 | Last shopping and flight back to Madrid |
Read our guides to Jardin Majorelle, Dar El Bacha and the Agafay Desert.
One Week Overland: Madrid to Marrakech
| Day | Route |
|---|---|
| Day 1 | Train from Madrid to Algeciras, bus to Tarifa, ferry to Tangier |
| Day 2 | Tangier to Chefchaouen |
| Day 3 | Chefchaouen to Fes |
| Day 4 | Fes medina |
| Day 5 | Fes to Merzouga, night in a desert camp |
| Day 6 | Merzouga to Dades or Ouarzazate |
| Day 7 | Arrive in Marrakech, fly back to Madrid the next day |
Weather: Madrid vs Marrakech
| Season | Madrid | Marrakech |
|---|---|---|
| Winter | Cold, sometimes below 5°C | Mild and sunny days, cool nights |
| Spring | Pleasant | Warm and green, the best season |
| Summer | Very hot and dry | Even hotter, often over 37°C |
| Autumn | Mild | Warm and good for touring |
Marrakech is a great winter escape from Madrid. In summer, both cities are hot, so plan early-morning visits and relax in the afternoon. See our guide to the best time to visit Morocco.
Money and Phone: Switching From Spain to Morocco
- Euros are easy to exchange in Morocco; use official exchange offices or ATMs.
- Spanish mobile plans usually do not include Morocco in EU roaming. Buy a Moroccan SIM or eSIM to avoid high charges.
- Cash is essential in souks and taxis.
- Save numbers in international format. Read our guide to the phone code of Morocco.
Traveling With Children or Older Travelers
For families with small children and older travelers, the direct flight is the easiest option: short, simple and with no ferry crossing or long train days. If you want to try the overland route with children, break it into short stages with a night in Tarifa and Tangier. In Marrakech, choose a riad near a medina gate or a hotel outside the medina for easier access. See our Morocco tours for seniors.
Cost Comparison for Two Travelers
| Option | Approximate cost for two, one way | Notes |
|---|---|---|
| Low-cost flight | €80 to €300 | Cheaper with early booking, plus baggage fees |
| Train + ferry + train | €200 to €400 | Plus a hotel night on the way |
| Bus + ferry + bus | €150 to €300 | Long but economical |
| Own car | €300 to €500 | Fuel, tolls and car ferry; best for longer trips |
These are rough estimates, and prices change a lot with the season. For two people on a short trip, a low-cost flight is often the cheapest and fastest. For a longer trip with stops in Andalusia and northern Morocco, the overland route offers much more value in experiences.
Safety Tips at Ports and Stations
- Keep your passport and valuables in a secure bag during the crossing.
- Ignore people at the ports who offer to “help” with forms or tickets for money.
- Use official taxis from the port or station and agree on the price first.
- Arrive in a new city in daylight if possible, especially on your first visit.
- Book your first night in Tangier in advance so you know where you are going.
Which Option Should You Choose?
| If you… | Choose |
|---|---|
| Have only a long weekend | A direct flight |
| Love trains and adventure | Train and ferry via Tarifa and Tangier |
| Travel on a very small budget | Bus and ferry |
| Want a long road trip | Your own car via Algeciras |
| Want to see the north of Morocco too | Fly or sail to Tangier and travel south to Marrakech |
10 Tips for a Smooth Journey From Madrid
- Carry your passport, not just your ID card.
- Check local times on every ticket.
- Get your passport stamped on the ferry before arrival.
- Choose Tarifa–Tangier Ville if you travel on foot.
- Avoid peak summer dates at the ports.
- Rent your car in Morocco, not in Spain.
- Buy a Moroccan SIM or eSIM on arrival.
- Change euros in Morocco at official offices or ATMs.
- Book your first night in advance, especially if you arrive late.
- Leave time for Tangier, Chefchaouen or Fes if you travel overland.
Common Mistakes When Traveling From Madrid to Marrakech
| Mistake | Fix |
|---|---|
| Forgetting the time difference | Check local times on tickets, especially in summer and Ramadan |
| Missing passport control on the ferry | Find the police counter on board right away |
| Taking a Spanish rental car to Morocco | Rent a car in Morocco instead |
| Traveling through the strait in August without booking | Book ferries early or avoid peak days |
| Bringing only an ID card | You need a passport to enter Morocco |
| Trying to do the overland route in one day | Plan a night in Tarifa, Tangier or Fes |
Your First Evening in Marrakech
However you arrive, your first evening in Marrakech is a moment to remember. Drop your bags at your riad, drink a welcome mint tea, and walk to Jemaa el-Fnaa as the sun goes down. The square fills with food stalls, musicians, storytellers and smoke from the grills. Find a rooftop café to watch the sunset behind the Koutoubia minaret, then try harira soup or grilled meat at one of the numbered food stalls.
Read our guides to Jemaa el-Fnaa Square, the sunset in Marrakech and what to see in Marrakech to plan the rest of your stay.
Quick Cheat Sheet: Madrid to Marrakech
- Fastest: direct flight, about 2 hours
- Most scenic: train + ferry + train via Algeciras or Tarifa
- Ferry crossing: 1 to 1.5 hours
- Passport control: often on board the ferry
- Same time in winter, Morocco 1 hour behind in summer
- You need a passport, not just an ID card
- Rent a car in Morocco, not in Spain
Frequently Asked Questions
How long is the flight from Madrid to Marrakech?
About 1 hour 45 minutes to 2 hours.
Which airlines fly direct from Madrid to Marrakech?
Mainly Ryanair, Iberia and Air Europa, with others depending on the season.
Can I travel from Madrid to Marrakech by train?
Yes, partly. Take a train to Algeciras, a ferry to Tangier, then a Moroccan train to Marrakech.
How long is the ferry from Spain to Morocco?
About 1 hour from Tarifa to Tangier Ville, and about 1.5 hours from Algeciras to Tanger Med.
Is there a time difference between Madrid and Marrakech?
In winter, no. In summer, Morocco is one hour behind Spain, and the difference changes again during Ramadan.
Can I drive a rental car from Spain to Morocco?
Usually not. Most Spanish rental companies forbid it. Rent a car in Morocco instead.
Do I need a passport to go from Spain to Morocco?
Yes. An ID card is not accepted to enter Morocco.
What is the cheapest way from Madrid to Marrakech?
Low-cost flights on sale are often the cheapest, followed by bus and ferry combinations.
Is it better to fly or take the ferry from Spain to Morocco?
Flying is faster. The ferry is more adventurous and lets you visit northern Morocco on the way.
Can I visit Chefchaouen on the way from Madrid to Marrakech?
Yes, if you travel overland via Tangier. It is about 2.5 to 3 hours from Tangier.
Final Thoughts
Whether you choose a quick flight or a slow journey across the Strait of Gibraltar, traveling from Madrid to Marrakech is easy and exciting. Fly if you are short on time, take the train and ferry if you want to feel the passage from Europe to Africa, and consider entering through Tangier to see more of Morocco on the way. Just remember your passport, check the time difference, and get your passport stamped on the ferry. Then let Marrakech surprise you with its colors, sounds and hospitality, only a short distance from Madrid but very different.
Coming from Madrid? Contact us and we will meet you at Marrakech airport, Tangier port or Fes, and plan your route to the Sahara and beyond.
Explore our Morocco trips:
Tours from Marrakech: Just two hours after leaving Madrid, start your adventure in Marrakech: we pick you up at Menara Airport and drive you over the High Atlas to the kasbahs and the Sahara.
Morocco Desert Tours: From the plains of Castile to the dunes of Merzouga: add a camel ride and a night in a desert camp to your Madrid trip for the contrast of a lifetime.
Tours from Fes: Fly from Madrid to Fes, explore the oldest medina, then cross the Middle Atlas to the Sahara and finish in Marrakech before flying back to Spain.
Tours from Ouarzazate: Discover the kasbahs and film studios of the south, landscapes that feel a world away from Madrid, just a short trip from Marrakech.
Tours from Tangier: Arriving by ferry from Tarifa or Algeciras? We meet you at the port in Tangier and take you through Chefchaouen and Fes to the desert and Marrakech.
Tours from Casablanca: Fly from Madrid to Casablanca, visit the Hassan II Mosque, and continue with a private driver to Marrakech, Fes and the Sahara.
Contact us

Your Local Experts
Our Moroccan team organizes private tours from every major city in Morocco: Marrakech, Fes, Casablanca, Tangier, Rabat, Agadir, Ouarzazate and more. Wherever you land, we pick you up and design your trip around your dates and interests.
Plan Your Trip
Click any destination to see more:
Marrakech Desert Tours
- 2 Days Desert Tour from Marrakech
- 3 Days Marrakech to Merzouga
- 3 Days Marrakech to Fes
- 4 Days Marrakech to Merzouga
- 4 Days Marrakech to Fes
- 5 Days Marrakech to Merzouga
- 5 Days Morocco Tour from Marrakech
- 6 Days Morocco Tour from Marrakech
- 7 Days Morocco Tour from Marrakech
- 8 Days Morocco Tour from Marrakech
- 8 Days with Imperial Cities
- 9 Days Morocco Tour from Marrakech
- 10 Days Morocco Tour from Marrakech
- 12 Days Morocco Tour from Marrakech
- 14 Days Morocco Tour from Marrakech