Discovering...
Discovering...

Every ONCF rail corridor mapped out -- Al Boraq high-speed, conventional lines, scenic routes, prices from 50 MAD, and step-by-step booking instructions for the entire Moroccan rail network.
8
Major Routes
From 50
MAD per ticket
320 km/h
Al Boraq top speed
2018
Al Boraq launched
Morocco's national railway, ONCF (Office National des Chemins de Fer), runs a modern and growing network connecting the country's major cities along the Atlantic coast and into the interior. The crown jewel is the Al Boraq high-speed line -- Africa's first and only high-speed rail service -- which rockets between Tangier and Casablanca at 320 km/h, compressing a 5-hour journey into just over 2 hours.
Beyond the high-speed corridor, conventional ONCF trains link Casablanca to Marrakech, Fes, Meknes, Rabat, El Jadida, and even distant Oujda on the Algerian border. Rail travel here is comfortable, affordable, and scenic. You pass through farmland, mountain corridors, and Atlantic coastal stretches that you would miss entirely from a plane window or a highway.
This guide provides a route-by-route breakdown with current prices, journey times, train frequency, scenic highlights, and practical tips for each line. It also covers how to book tickets online, what to expect at major stations, the difference between first and second class, and answers to the questions travelers ask most often.
Morocco's rail network has limitations -- it does not extend south of Marrakech, and there are no east-west cross-country routes. But for the cities it does connect, the train is frequently the smartest way to travel: faster than a bus, cheaper than a taxi, and far more relaxing than driving yourself through Moroccan traffic.
Africa's First High-Speed Train
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, transforming connectivity across northern Morocco.
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. The ride is smooth and virtually silent at full tilt -- noticeably quieter than European TGV services.
Spacious seats in both classes with power outlets, fold-down tables, and reading lights. Business class offers extra legroom and access to a premium lounge at Tangier and Casa Voyageurs stations. All seats face forward. The interior feels modern and well-maintained.
Free Wi-Fi is available on all Al Boraq trains, though speeds can vary under load. Mobile 4G signal holds strong along the entire route. A cafe car serves hot and cold beverages, sandwiches, and snacks at reasonable prices.
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.
Route by Route
Detailed breakdown of every significant ONCF route with prices, times, stops, scenic notes, and practical advice.
from 149 MAD
2nd class
Africa's first high-speed rail line, the Al Boraq connects Tangier to Casablanca at speeds up to 320 km/h. Named after the mythical winged steed, this TGV-technology train has transformed northern Morocco travel since its 2018 inauguration. The old journey took 5 hours; now it takes just over 2. Trainsets feature spacious seating, 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 offers slightly wider seats and a quieter atmosphere, but second class is already excellent.
Scenic: The Gharb plain between Kenitra and Tangier shows rolling agricultural land and, on clear days, the Rif Mountains appear on the eastern horizon.
from 100 MAD
2nd class
The most popular tourist route in Morocco, connecting the commercial capital with the red city. 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.
Scenic: Watch for the first sighting of the snow-capped High Atlas peaks about 40 minutes before Marrakech. The contrast between flat agricultural land and sudden mountain wall is dramatic.
from 50 MAD
2nd class
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 -- just 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.
Scenic: Near Mohammedia, the tracks run close to the Atlantic shoreline. Look left (westward) for brief ocean views and the Mohammedia beach.
from 120 MAD
2nd class
A scenic journey through Morocco's agricultural heartland linking the Atlantic coast to the ancient imperial cities of Meknes and Fes. After Rabat and Kenitra, the train climbs through rolling hills and cork oak forests into the Saiss plain. The approach to Meknes offers olive grove panoramas, and the final stretch to Fes reveals the ancient medina settled into its valley. Consider breaking the trip with a stop in Meknes to see the grandiose Bab Mansour gate and the Royal Stables.
Tip: The Fes station is about 3 km from the medina. A petit taxi costs from 15 MAD to Bab Boujloud. First class is recommended for this longer journey -- you'll appreciate the reserved seat and space.
Scenic: The section between Kenitra and Meknes passes through some of Morocco's most productive farmland: wheat fields, sunflowers in season, and cork oak woodland.
from 195 MAD
2nd class
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. The trip is long but covers the entire north-south gradient of Morocco's Atlantic lowlands. 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: For the 7-hour journey, first class is worth every dirham. Alternatively, consider CTM overnight buses (from 180 MAD) or domestic flights (from 400 MAD one-way). Power outlets are available in first class -- charge your devices.
Scenic: You get the best of both corridors: the Atlas approach leaving Marrakech and the farmland-to-hills transition approaching Fes. Sunrise departures light up the entire journey.
from 170 MAD (combined)
2nd class
No direct Tangier-Fes train exists. The optimal route 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. This combined journey is dramatically faster than the old conventional routing (5+ hours) and represents one of the most practical cross-country connections in the network.
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.
Scenic: 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.
from 220 MAD
2nd class
The eastern trunk line crosses Morocco from the Atlantic to the Algerian border. Past Fes, the train enters the Taza corridor -- a dramatic mountain 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 mountain section is the scenic highlight -- try to be awake for it.
Scenic: 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.
from 50 MAD
2nd class
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 makes an excellent day trip from Casablanca, with its atmospheric Portuguese cistern, fortified medina, and beach promenade. The station sits about 1 km from the old medina walls.
Tip: Perfect for a day trip. Take a morning train out and an evening train back. The Portuguese cistern is the must-see. At from 50 MAD in second class, this is one of Morocco's best-value rail excursions.
Scenic: Open Atlantic views appear intermittently on the western side of the train, especially near the coast south of Casablanca.
Both classes get you to the same destination at the same speed. Here is what actually differs to help you decide.
| Feature | First Class | Second Class |
|---|---|---|
| Seat Width | Wider seats (3 abreast) | Standard seats (4 abreast) |
| Air Conditioning | Individual controls | Central system |
| Seat Assignment | Reserved | Unreserved (first come) |
| Crowding | Rarely crowded | Can be packed at peak times |
| Power Outlets | At every seat | Limited or none |
| Noise Level | Quieter cars | Livelier atmosphere |
| Price Premium | Approximately 50% more | Base fare |
| Best For | Journeys over 2 hours | Short trips under 2 hours |
Bottom line: For the Casablanca-Rabat shuttle (under an hour), save your money and ride second class. For the Casablanca-Fes or Marrakech-Fes runs (3.5 to 7.5 hours), the first-class upgrade is a genuine comfort improvement worth the extra 50%.
Step by Step
Online booking through the ONCF website or app is the easiest approach. You can also buy tickets at any station counter -- just bring your passport.
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.
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.
Select first or second class. For Al Boraq, Business class appears on some departures. The price difference is clearly shown before you commit.
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.
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.
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.
Window Seat Worthy
Morocco's trains pass through landscapes that range from Atlantic coastline to mountain gorges. These are the stretches where you should put your phone down and look out the window.
Cork oak forests and the Saiss plain
After Kenitra, the landscape transitions from coastal flat to rolling hills. Cork oak woodland lines the tracks, and the approach to Meknes reveals endless olive groves. The final descent into the Fes basin shows the ancient medina from above.
Best seat: Left side (heading toward Fes)
Mountain pass between Rif and Middle Atlas
The most dramatic stretch in the entire network. The train squeezes through the Taza Gap, a natural corridor between two mountain ranges. Rocky gorges, terraced hillsides, and remote Berber villages appear along this rarely-touristed section.
Best seat: Right side (heading east)
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-capped peaks glow pink in the early light. The contrast with the flat Chaouia plain is striking.
Best seat: Right side (heading south)
Atlantic coastline glimpses
Near Mohammedia, the tracks approach the Atlantic shore. The views are brief but rewarding -- beach, surf, and fishing boats appear through the windows before the train curves inland toward Rabat.
Best seat: Left side (heading north)
Station by Station
What to expect at each key station -- connections, amenities, and how to get from the platform to the city.
Casablanca
Cafes, ATMs, left-luggage, tramway link
Main hub for all routes including the airport train. Modern facilities in the Maarif district. The most important connection point in the entire network.
Casablanca
Basic waiting room, ticket office
Secondary station near the old medina and port. Serves commuter trains to Rabat and coastal shuttles. Less useful for long-distance travel.
Marrakech
ATM, cafe, taxi rank, Supratours desk
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.
Rabat
Cafes, shops, tramway connection
Central Rabat station. Walking distance to the medina and government quarter. Connected to the Rabat-Sale tramway system for onward travel.
Fes
ATM, cafe, petit taxi rank
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.
Tangier
Al Boraq lounge, cafes, ATMs
Terminal for Al Boraq and conventional trains. City center location, walkable to the Grand Socco and medina entrance. Renovated when Al Boraq launched.
Meknes
Waiting room, small cafe
On the Fes-Casablanca main line. About 2 km from the historic Bab Mansour. A worthwhile stopover between Fes and Rabat.
Kenitra
Waiting room, cafe, ticket office
Key junction where Al Boraq meets the conventional network. The critical connection point for Tangier-to-Fes routing.
Practical details that make the difference between a smooth ride and a stressful one.
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.
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.
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.
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.
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.
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.
Common Questions
Answers to the questions travelers ask most about riding ONCF trains in Morocco.
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.
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.
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.
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.
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.
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.
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.
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.
Continue planning your Morocco transport with these companion guides.
General train travel advice, tips for first-time rail travelers in Morocco, and itinerary suggestions.
Read GuidePlanning a self-drive adventure? Routes, car rental, road conditions, and driving rules across Morocco.
Read GuideBuses, grands taxis, domestic flights, and ferries -- every transport option beyond the rail network.
Read GuidePlan your daily spending with estimated costs for transport, food, accommodation, and activities.
Read GuideFrom the Al Boraq blasting through the Gharb at 320 km/h to a slow conventional run through the Taza mountain corridor, Morocco's trains offer some of the best-value rail travel in Africa. Book your tickets on oncf.ma, grab a window seat, and watch the landscape unfold.