Al Boraq high-speed train at a Moroccan station platform ready for departure

Rail travel guide

Morocco Train Routes Guide 2026

Al Boraq high-speed and the conventional ONCF lines, with fares from 50 MAD, journey times, the stretches worth a window seat, and how to book.

Photograph: NicholasNCE, CC BY-SA 4.0

Al Boraq top speed
Up to 320 km/h
Cheapest ticket
From 50 MAD, Casa to Rabat
Busiest route
Casa to Rabat, 36 trains daily
Network
Tangier to Oujda; ends at Marrakech

Traveling Morocco by Rail

The Al Boraq high-speed train runs Tangier to Casablanca in just over 2 hours, at up to 320 km/h; the old journey took nearly 5. It is Africa's only high-speed line, run by ONCF (Office National des Chemins de Fer), the national railway that links the major cities on the Atlantic coast and inland.

Beyond the high-speed corridor, conventional ONCF trains link Casablanca to Marrakech, Fes, Meknes, Rabat, El Jadida and Oujda on the Algerian border. Second class from Casablanca to Rabat starts at 50 MAD, and the lines cross farmland, hill country and Atlantic coast.

The network stops at Marrakech: for Essaouira, Agadir or the desert you need a bus or a car. Between the cities it does connect, the train is usually faster than the bus and cheaper than a grand taxi.

Book on oncf.ma with Visa or Mastercard. Children aged 4-12 pay half fare and under-4s travel free. Each line is set out below with prices, journey times and frequency, then booking, stations and first versus second class.

Tangier to Casablanca by Al Boraq takes 2 hours and 10 minutes, from 149 MAD in second class.

The Al Boraq Experience

Inaugurated in November 2018, the Al Boraq is built on French TGV technology by Alstom. It cut the Tangier-Casablanca travel time from nearly 5 hours to 2 hours and 10 minutes.

Speed and Technology

Maximum operational speed of 320 km/h on the dedicated high-speed track between Tangier and Kenitra. South of Kenitra, trains join the conventional network at reduced speed.

Onboard Comfort

Both classes have power outlets, fold-down tables and reading lights. Business class adds legroom and lounge access at Tangier and Casa Voyageurs stations.

Wi-Fi and Cafe Car

Al Boraq trains have free Wi-Fi, which slows when the train is full. Mobile 4G works along the route. The cafe car sells hot and cold drinks, sandwiches and snacks.

Pricing Structure

Full Tangier-Casablanca: from 149 MAD (second class), from 229 MAD (first class). Shorter segments like Tangier-Kenitra cost less. Early online booking sometimes reveals promotional fares on the ONCF app. Seasonal pricing can change around holidays.

All Major ONCF Train Routes

Each main ONCF route with prices, times, stops and tips.

RouteTimeTrains2nd class1st class
Tangier to Casablanca (Al Boraq High-Speed)2h1012 dailyfrom 149 MADfrom 229 MAD
Casablanca to Marrakech2h50 - 3h209 dailyfrom 100 MADfrom 150 MAD
Casablanca to Rabat55 min - 1h1036 dailyfrom 50 MADfrom 75 MAD
Casablanca to Fes3h30 - 4h7 dailyfrom 120 MADfrom 180 MAD
Marrakech to Fes (via Casablanca)7h - 7h303 daily (direct)from 195 MADfrom 295 MAD
Tangier to Fes (Al Boraq + Conventional)3h30 - 4h (with change)5 daily combinationsfrom 170 MAD (combined)from 260 MAD (combined)
Casablanca to Oujda9h30 - 10h2 dailyfrom 220 MADfrom 330 MAD
Casablanca to El Jadida1h306 dailyfrom 50 MADfrom 80 MAD

All prices approximate. Seasonal pricing can change during holidays and peak travel periods.

Tangier to Casablanca (Al Boraq High-Speed)

Al Boraq, 350 km. Stops: Tangier Ville, Kenitra, Rabat Agdal, Rabat Ville, Casa Voyageurs.

The Al Boraq runs Tangier to Casablanca in just over 2 hours at up to 320 km/h; before it opened in 2018 the trip took 5. The TGV-based train is named after the mythical winged steed and has power outlets at every seat and a cafe car. The route crosses the fertile Gharb plain with views of farmland and glimpses of the Atlantic coast near Kenitra.

Tip
Book 2-3 weeks ahead for the best fares. The 7:00 AM and 5:00 PM departures fill up fastest. First class has slightly wider seats and a quieter car. Second class is fine for this run.
From the window
The Gharb plain between Kenitra and Tangier shows rolling agricultural land and, on clear days, the Rif Mountains appear on the eastern horizon.

Casablanca to Marrakech

Conventional, 243 km. Stops: Casa Voyageurs, Settat, Ben Guerir, Marrakech.

This is the route most visitors take. Trains run from early morning to late evening. The journey crosses the Chaouia agricultural plain before the Atlas Mountains emerge on the southern horizon as you approach Marrakech. First-class cars are air-conditioned with assigned seating. Second class is comfortable but can get crowded during holidays and weekends. The Marrakech station is a handsome Art Deco building about 15 minutes by taxi from the medina.

Tip
Take the direct train (2h50) rather than the semi-direct service, which makes additional stops. Morning departures offer the best light as the Atlas range appears ahead of you.
From the window
Watch for the first sighting of the snow-capped High Atlas peaks about 40 minutes before Marrakech, rising straight out of the flat farmland.

Casablanca to Rabat

Shuttle, 90 km. Stops: Casa Voyageurs, Casa Port (some), Mohammedia, Rabat Ville, Rabat Agdal.

Morocco's busiest rail corridor, with shuttle-frequency service between the economic and political capitals. Trains depart approximately every 30 minutes during peak hours and hourly off-peak. This is a commuter-heavy route full of business travelers and students. The line follows the Atlantic coast with occasional ocean views near Mohammedia. Both Casa Voyageurs and Rabat Ville stations are centrally located with easy taxi connections.

Tip
No advance booking needed: show up and board the next train. Second class is fine for this short run. Avoid the 7-9 AM and 5-7 PM rush if you want a guaranteed seat.
From the window
Near Mohammedia, the tracks run close to the Atlantic shoreline. Look left (westward) for brief ocean views and the Mohammedia beach.

Casablanca to Fes

Conventional, 296 km. Stops: Casa Voyageurs, Rabat Ville, Kenitra, Meknes, Fes.

After Rabat and Kenitra the train climbs through hills and cork oak forest onto the Saiss plain, past olive groves into Meknes and on to Fes. You can break the trip in Meknes to see the Bab Mansour gate and the Royal Stables.

Tip
Fes station is about 3 km from the medina; a petit taxi to Bab Boujloud costs from 15 MAD. Book first class on this run for the reserved seat.
From the window
The section between Kenitra and Meknes passes through some of Morocco's most productive farmland: wheat fields, sunflowers in season, and cork oak woodland.

Marrakech to Fes (via Casablanca)

Conventional, 539 km. Stops: Marrakech, Ben Guerir, Settat, Casa Voyageurs, Rabat Ville, Kenitra, Meknes, Fes.

The longest standard route connecting Morocco's two most-visited cities. No direct east-west rail line exists, so all trains route through Casablanca. Three direct daily services make the full run without requiring a platform change. Many travelers split this into two legs with a night in Casablanca or Rabat. Direct trains have a cafe car with coffee, tea, and sandwiches.

Tip
Over 7 hours, pay for first class: it has power outlets. The alternatives are CTM overnight buses (from 180 MAD) or domestic flights (from 400 MAD one-way).
From the window
You see the Atlas behind you leaving Marrakech and the farmland turning to hills approaching Fes.

Tangier to Fes (Al Boraq + Conventional)

Mixed, 380 km. Stops: Tangier Ville, Kenitra (change), Meknes, Fes.

No direct Tangier-Fes train exists. The fastest option takes the Al Boraq high-speed from Tangier to Kenitra (1 hour), then a conventional train onward to Fes (2h30). The connection at Kenitra usually allows 20-40 minutes, and the station has a waiting room and small cafe. The old conventional routing took 5+ hours.

Tip
Book the Al Boraq ticket in advance online. Buy the Kenitra-Fes leg at the counter or in the ONCF app. Allow at least 30 minutes for the Kenitra connection to absorb any delays.
From the window
You experience two distinct landscapes: the high-speed sweep through the Gharb, then the slower climb into the Meknes-Fes hill country on the conventional train.

Casablanca to Oujda

Conventional, 607 km. Stops: Casa Voyageurs, Rabat, Meknes, Fes, Taza, Oujda.

The eastern trunk line crosses Morocco from the Atlantic to the Algerian border. Past Fes, the train enters the Taza corridor, a pass between the Rif and Middle Atlas ranges. The landscape shifts from fertile western plains to arid eastern steppe near Oujda. This is an adventure route for rail enthusiasts more than a practical transport option. The overnight departure lets you sleep through the long haul, arriving in Oujda by morning.

Tip
Bring your own food and water. The cafe car may have limited options on this route. The Taza section is the scenic highlight, so check whether your train passes it in daylight.
From the window
The Taza Gap is Morocco's most dramatic rail scenery: the train threads between two mountain ranges through a narrow corridor of rocky gorges and terraced hillsides.

Casablanca to El Jadida

Shuttle, 99 km. Stops: Casa Voyageurs, Bir Jdid, El Jadida.

A short coastal route to the Portuguese-influenced city of El Jadida, a UNESCO World Heritage site. The train heads south through agricultural land with occasional ocean views. El Jadida works as a day trip from Casablanca for the Portuguese cistern, the fortified medina and the beach promenade. The station is about 1 km from the old medina walls.

Tip
Take a morning train out and an evening train back, from 50 MAD each way in second class. Do not skip the Portuguese cistern.
From the window
Open Atlantic views appear intermittently on the western side of the train, especially near the coast south of Casablanca.

First Class vs Second Class

Both classes run at the same speed on the same train. First class costs about 50% more and buys you a reserved seat and more space.

FeatureFirst ClassSecond Class
Seat WidthWider seats (3 abreast)Standard seats (4 abreast)
Air ConditioningIndividual controlsCentral system
Seat AssignmentReservedUnreserved (first come)
CrowdingRarely crowdedCan be packed at peak times
Power OutletsAt every seatLimited or none
Noise LevelQuieter carsLivelier atmosphere
Price PremiumApproximately 50% moreBase fare
Best ForJourneys over 2 hoursShort trips under 2 hours

How to Book ONCF Train Tickets

Book online through the ONCF website or app, or buy at any station counter with your passport.

  1. Visit ONCF.ma or Download the App

    The official ONCF website and mobile app handle online booking for all routes including Al Boraq. The app is available for iOS and Android and works in English, French, and Arabic.

  2. Select Your Route and Date

    Enter departure and arrival stations. The system displays all available trains with times, durations, and prices. Al Boraq services are marked with a lightning bolt icon.

  3. Choose Your Class

    Select first or second class. For Al Boraq, Business class appears on some departures. The price difference is clearly shown before you commit.

  4. Enter Passenger Details

    Provide your full name as it appears on your passport. Children under 4 travel free. Ages 4-12 receive a 50% discount. Students with ONCF cards get a 25% reduction.

  5. Pay and Receive Your Ticket

    International Visa and Mastercard are accepted. Your e-ticket arrives by email and is viewable in the ONCF app. Print it or take a screenshot; you must show it on board.

  6. Board Your Train

    Arrive 15-20 minutes before departure. Check the platform on the departure boards. For Al Boraq, your car and seat number are printed on the ticket. For conventional second class, seating is unreserved.

Scenic Train Routes in Morocco

Four stretches worth a window seat, from the Atlantic at Mohammedia to the Taza Gap.

Casablanca to Fes via Meknes

Cork oak forests and the Saiss plain

After Kenitra the coastal flats give way to hills. Cork oak woodland lines the tracks, then olive groves on the approach to Meknes.

Best seat: Left side (heading toward Fes)

Fes to Oujda (Taza Corridor)

Mountain pass between Rif and Middle Atlas

The train runs through the Taza Gap, a natural corridor between two mountain ranges, past rocky gorges, terraced hillsides and Berber villages. Few tourists ride this section.

Best seat: Right side (heading east)

Casablanca to Marrakech

High Atlas Mountains on the horizon

About 40 minutes before Marrakech, the High Atlas suddenly appears on the southern skyline. On clear winter mornings the snow on the peaks catches the early light.

Best seat: Right side (heading south)

Casablanca to Rabat (Mohammedia section)

Atlantic coastline glimpses

Near Mohammedia, the tracks approach the Atlantic shore. You get a short view of beach, surf and fishing boats before the train curves inland toward Rabat.

Best seat: Left side (heading north)

Major Station Guides

Connections, amenities and how to get from the platform into town at each key station.

Casa Voyageurs, Casablanca

Main hub for all routes including the airport train. Modern facilities in the Maarif district. The most important connection point in the entire network.

On site: Cafes, ATMs, left-luggage, tramway link

Casa Port, Casablanca

Secondary station near the old medina and port. Serves commuter trains to Rabat and coastal shuttles. Less useful for long-distance travel.

On site: Basic waiting room, ticket office

Marrakech

Southern terminus. Beautiful Art Deco architecture. About 15 minutes by petit taxi from Jemaa el-Fnaa. Supratours buses to the south depart from the adjacent lot.

On site: ATM, cafe, taxi rank, Supratours desk

Rabat Ville, Rabat

Central Rabat station. Walking distance to the medina and government quarter. Connected to the Rabat-Sale tramway system for onward travel.

On site: Cafes, shops, tramway connection

Fes

Located in the Ville Nouvelle, 3 km from the ancient medina. Petit taxi to Bab Boujloud costs from 15 MAD. Fully modernized with clear signage.

On site: ATM, cafe, petit taxi rank

Tangier Ville, Tangier

Terminal for Al Boraq and conventional trains. City center location, walkable to the Grand Socco and medina entrance. Renovated when Al Boraq launched.

On site: Al Boraq lounge, cafes, ATMs

Meknes

On the Fes-Casablanca main line. About 2 km from the historic Bab Mansour. A worthwhile stopover between Fes and Rabat.

On site: Waiting room, small cafe

Kenitra

Key junction where Al Boraq meets the conventional network. The critical connection point for Tangier-to-Fes routing.

On site: Waiting room, cafe, ticket office

Essential Train Travel Tips

Luggage, Ramadan timetables, safety, Wi-Fi and discounts.

Luggage Policy

No formal weight or size limit. Overhead racks hold standard carry-on bags and backpacks. Larger suitcases go in the luggage areas at each car's end. There is no checked-luggage service and no luggage screening. Keep valuables with you.

Ramadan Schedule Changes

During Ramadan, ONCF adjusts timetables with reduced frequency in the evening. Check oncf.ma for the special Ramadan schedule. Late-night services may be added around Iftar and Suhoor times.

No Rail South of Marrakech

The rail network terminates at Marrakech. To reach Ouarzazate, Zagora, Merzouga (Sahara), Agadir, or Essaouira, use Supratours or CTM buses. Supratours runs from the lot adjacent to Marrakech station, timed to meet arriving trains.

Safety and Security

Moroccan trains are generally safe. Petty theft is uncommon but keep belongings close, especially in crowded second-class cars. First class, with its reserved seating, offers more peace of mind. Stations have security personnel and CCTV.

Connectivity on Board

Al Boraq trains offer free Wi-Fi (speeds vary). All routes have 4G mobile coverage for most of the journey, with brief drops in mountain sections on the Fes-Oujda line. Download offline maps before your trip just in case.

Discounts and Passes

Children aged 4-12 pay half fare. Under 4 ride free. Students with ONCF student cards receive a 25% discount. ONCF occasionally runs promotional fares on the app; check the "Offres" section. Seasonal pricing can change during holidays.

Morocco Train Travel FAQ

What travelers ask most about riding ONCF trains.

How do I book train tickets in Morocco online?

Use the official ONCF website (oncf.ma) or download the ONCF mobile app for iOS or Android. Both accept international Visa and Mastercard. Select your route, date, and class, then pay online. Your e-ticket arrives by email and can also be displayed in the app. Print it or save a screenshot to show the conductor on board.

What is the Al Boraq train and how fast does it go?

Al Boraq is Africa's first high-speed rail service, connecting Tangier to Casablanca at speeds up to 320 km/h. Launched in 2018, it uses Alstom TGV technology and reduced the Tangier-Casablanca journey from 5 hours to 2 hours and 10 minutes. The name comes from the mythical winged steed in Islamic tradition. Tickets start from 149 MAD in second class.

Is first class worth the extra cost on Moroccan trains?

For journeys over 2 hours, first class is a worthwhile upgrade. You get wider seats (3 abreast instead of 4), reserved seating, working power outlets at every seat, and a noticeably quieter car. The price premium is roughly 50% over second class. For short trips like Casablanca to Rabat (55 minutes), second class is perfectly comfortable and saving the difference makes sense.

Can I take the train from Marrakech to the Sahara Desert?

No. The ONCF rail network does not extend south of Marrakech. To reach the Sahara (Merzouga or M'Hamid), you need to take a bus or arrange private transport. Supratours buses connect directly at Marrakech train station and run to Ouarzazate and Errachidia. From Errachidia, local transport continues to Merzouga.

How early should I arrive at the train station in Morocco?

For Al Boraq high-speed trains, arrive 15 to 20 minutes before departure. For conventional trains with unreserved second-class seating, arriving 10 to 15 minutes early gives you time to find a good seat. During holiday periods (Eid, summer) and on busy Friday/Sunday routes, arriving 30 minutes early helps secure seating.

What is the luggage policy on Moroccan trains?

ONCF does not enforce a strict luggage limit. Each passenger can bring reasonable personal luggage. Overhead racks hold standard carry-on bags and backpacks. Larger suitcases fit in the luggage areas at the end of each car. There is no separate checked-luggage service. Keep valuables with you at all times as luggage areas are not supervised.

Are there overnight trains in Morocco?

There are no dedicated sleeper cars on Moroccan trains. The longest route, Casablanca to Oujda, has a late evening departure that arrives the next morning (about 10 hours), but you will be sitting in a regular seat. For genuine overnight travel comfort, consider CTM or Supratours buses with reclining seats, or book a domestic flight instead.

Do Moroccan trains run on time?

Al Boraq high-speed trains are consistently punctual, with most arrivals within 5 minutes of schedule. Conventional trains run reasonably on time, though delays of 10 to 20 minutes can occur, particularly on longer routes like Casablanca to Oujda. The Casablanca-Rabat shuttle is highly reliable due to its frequency. During Ramadan and major holidays, allow extra buffer time.