How to Get from Spain to Morocco: Ferry vs Flight
Spain and Morocco are only about 14 km (9 miles) apart at the Strait of Gibraltar, but the ferry websites, port names and route options can be surprisingly confusing. We’re a Morocco-based tour operator, we meet a lot of our guests off the ferry in Tangier or at the airport in Marrakech and Casablanca, and these are the questions we answer every week.
This guide covers every realistic way to get from Spain to Morocco: the ferry routes, how long they take, what they cost, crossing with a car, flying, and how to decide which option is right for your trip.
How to get from Spain to Morocco: the short answer
You have two good options:
- By ferry, if you’re already in southern Spain. The fastest and easiest route is Tarifa to Tangier, about an hour, arriving right in Tangier’s city center.
- By plane, if you’re coming from Madrid, Barcelona or anywhere further from the south, or if you’re heading straight to Marrakech and the Sahara. Direct flights take 1 to 2 hours.
As a rule of thumb: if your Morocco trip starts in the north (Tangier, Chefchaouen, Fes), the ferry makes sense. If it starts in Marrakech, fly.
Ferry from Spain to Morocco: routes, times and prices
There are three main ferry routes across the Strait of Gibraltar. They all run year-round, and they all carry both foot passengers and cars.
Route | Crossing time | Arrives at | Best for | Foot passenger, one way |
Tarifa → Tangier Ville | about 1 hr | Tangier city center | Most travelers on foot | from about $80 / €70 / £60 |
Algeciras → Tanger Med | about 1.5 hr | A port about 45 km (28 miles) outside Tangier | Travelers with a car | from about $35 / €29 / £25 |
Algeciras → Ceuta | about 1 hr 15 min | Ceuta, a Spanish city on the Moroccan coast | Rarely the best choice | from about $40 / €35 / £30 |
These are Baleària’s starting fares at the time of writing. Prices change with the season and operator, so check current fares on the operators’ sites or a comparison site like Ferryhopper before you travel.
Tarifa to Tangier: the best option for most travelers
This is the route we recommend to almost everyone traveling without a car. Tarifa is the southernmost town in mainland Spain and sits at the narrowest point of the Strait, so it’s the shortest crossing to Morocco. The fast ferry, run by Baleària on the Tarifa to Tangier Ville route, takes about an hour and docks at Tangier’s city port, a short walk or taxi ride from the medina and the train station.
A few things worth knowing:
- A return ticket is often the better deal. One-way fares on this route start from around $80 / €70 / £60, while Baleària puts the average adult round trip at only about $95 / €82 / £70. If you’re coming back the same way, compare both before you book.
- You don’t have to start in Tarifa. If you’re staying in Algeciras or arriving there by train or bus, Baleària runs a free shuttle bus between Algeciras and Tarifa for passengers on this route.
- Tarifa is small. If you’re returning a rental car, Algeciras usually has more options.
- Weather matters. The fast ferries are more sensitive to strong wind than the big ships, so crossings are sometimes delayed or cancelled on very windy days. Leave some slack in your plans.
Algeciras to Tanger Med: the best option with a car
Algeciras is Spain’s busiest ferry port for Morocco, with frequent sailings run by several companies, including Baleària, FRS, Naviera Armas and Africa Morocco Link. The ships are bigger and the crossing takes about an hour and a half, so it’s the natural choice if you’re bringing a vehicle. On a clear day, keep an eye out for dolphins in the Strait.
The catch for foot passengers is where you arrive. Tanger Med is a large commercial port about 45 km (28 miles) from Tangier, so you’ll need a taxi, bus or pre-arranged transfer to get into the city or on toward Tetouan and Chefchaouen. Allow 45 minutes to an hour.
Algeciras to Ceuta: why we rarely recommend it
Ceuta is a Spanish city on the Moroccan coast, so the ferry from Algeciras is technically a domestic Spanish crossing. From Ceuta, you then have to cross a land border into Morocco, which can involve long queues and is much less straightforward than arriving directly in Tangier. Unless you have a specific reason to go via Ceuta, the Tangier routes are easier.
Is there a ferry from Gibraltar to Morocco?
Only occasionally. A service from Gibraltar to Tanger Med has been running roughly twice a month, and its future has been uncertain, so it’s not something to build a trip around. If you’re staying in Gibraltar, it’s easier to cross the border into Spain and take the ferry from Algeciras, just across the bay, or from Tarifa.
Is there a ferry from Málaga to Tangier?
Not at the moment. There’s currently no regular direct ferry between Málaga and Tangier. The only ferry from Málaga goes to Melilla, another Spanish city on the North African coast, and takes around 6 hours. From Málaga, the easiest options are:
- Take a bus or drive to Tarifa (about 2 hours) or Algeciras (about 1.5 hours) and catch the ferry from there.
- Fly from Málaga directly to Marrakech, Tangier, Fes or Casablanca.
How long is the ferry from Spain to Morocco?
The crossing itself takes about 1 hour from Tarifa and about 1.5 hours from Algeciras. In practice, allow extra time for check-in, boarding and passport control, and expect the occasional delay, especially in summer or in bad weather.
What to expect on the crossing
Passport control usually happens on board. On the Tangier routes, Moroccan police typically stamp passports during the crossing. Look out for a queue forming in one of the lounges soon after departure, and join it early so you’re not held up when the ferry docks. US citizens don’t need a visa for Morocco for stays of up to 90 days (see our guide to the Morocco visa for US citizens).
You can book online or at the port. Outside the summer peak, you can usually buy tickets at the port on the day. Booking online in advance is easier, and it’s essential in summer.
Summer is very busy. Every year from 15 June to 15 September, Spain and Morocco run the Operación Paso del Estrecho, when millions of Moroccans living in Europe travel home for the holidays. Ports are crowded and sailings fill up, especially at weekends, so book ahead and allow extra time.
Ferries don’t always leave on time. Don’t plan a tight connection on the Moroccan side, particularly a train or a flight.
Change some money or use an ATM on arrival. Morocco uses the dirham, a closed currency, so you’ll get it once you arrive. Our guide to whether Morocco is expensive covers cash and cards.
Crossing from Spain to Morocco with a car
If you’re driving your own car, take the ferry from Algeciras to Tanger Med, which is set up for vehicles. On arrival, you’ll go through customs and register the car for temporary import, and you’ll need insurance that covers Morocco. If your policy doesn’t, you can buy Moroccan insurance at the port. With a car, Baleària’s average round trip on this route is about $210 / €179 / £155, so book early in summer, when car spaces sell out first.
If you’ve hired a car in Spain, check your rental agreement: most Spanish rental companies don’t allow their cars to be taken to Morocco, and their insurance won’t cover you there. In most cases it’s easier to return the car in Algeciras, cross as a foot passenger, and arrange a driver or a tour in Morocco.
Flying from Spain to Morocco
Flying is the fastest option from most of Spain, and budget airlines such as Ryanair, Vueling and easyJet, along with Royal Air Maroc and Iberia, cover the main routes. Booked in advance, one-way fares can start from around $35 / €30 / £25.
From | To Marrakech (direct flight, approx.) |
Madrid | 1 hr 45 min |
Barcelona | 2 hr 15 min |
Seville | 1 hr 15 min |
Málaga | 1 hr 15 min |
Valencia | 2 hr 5 min |
Casablanca has direct Royal Air Maroc flights from Madrid, Barcelona, Málaga, Seville and Valencia, and Fes has direct flights from Madrid, Málaga and Valencia. Routes and schedules change often, so check current flights before planning around one. Budget airlines also have strict baggage limits, so check what’s included if you’re carrying luggage for a longer trip.
Can you travel from Spain to Morocco by train?
Not directly. There’s no rail link across the Strait of Gibraltar. You can, however, take the train to Algeciras (around 5.5 hours from Madrid) and connect with the ferry there, or with the free shuttle bus to Tarifa. Once you’re in Tangier, Morocco’s high-speed train reaches Casablanca in a little over 2 hours.
Ferry or flight: which should you choose?
Take the ferry if:
- You’re already in Andalusia, around Seville, Cádiz, Tarifa or the Costa del Sol
- Your Morocco trip starts in the north: Tangier, Chefchaouen or Fes
- You’d enjoy the crossing itself, with Africa appearing on the horizon
Fly if:
- You’re coming from Madrid, Barcelona, Valencia or further north
- You’re heading straight to Marrakech, the Atlas Mountains or the Sahara
- You’re short on time. Tangier is a long way from Marrakech by land (roughly 5 to 6 hours by train)
Many travelers combine both: they take the ferry into Tangier, travel south through Morocco, and fly back to Spain from Marrakech or Fes. Our guide to adding Morocco to a Spain trip has sample itineraries built this way.
Arriving by ferry? We'll meet you in Tangier
Our main hubs are Marrakech and Casablanca, and we also start private tours in Tangier, so if you’re crossing by ferry, we can meet you in Tangier and take it from there, whether that’s Chefchaouen and Fes, the Sahara or Marrakech. Our 7-day desert tour from Tangier to Marrakech is designed for exactly this kind of trip, and you can find more options in our tours from Tangier.
Flying in instead? We can start your trip at the airport in Marrakech, Casablanca or Fes. Tell us your dates and your arrival point, and we’ll design a custom tour around them.
Frequently asked questions
Yes. Ferries are frequent, the crossing is short and there are plenty of direct flights. The main thing to plan around is timing, especially in summer and on windy days.
Outside the summer peak, you can usually buy a ticket at the port on the day. Between mid-June and mid-September, and around holidays, it's best to book ahead, particularly if you're taking a car.
Yes, many travelers take the early ferry from Tarifa, spend the day in Tangier and return in the evening. It's a fun taste of Morocco, but it only shows you one city. If you can spare three or four days, you'll see far more.
Published: 2 October 2026
About the Author

Sandra Potisek is a travel content creator, originally from Slovenia and now spending much of her year in Morocco. As part of the Village Morocco Travel team, she works closely with local guides to plan trips for international guests — and off the clock, she's immersing herself in the country's culture, cuisine, and lesser-known corners firsthand.
Have Any Questions?
We’re here to help with any questions about our tours, travel plans, pricing, or customizing your Morocco journey.