Discovering...
Discovering...

Complete route-by-route breakdown of Morocco's ONCF rail network. From the Al Boraq high-speed to scenic conventional lines, everything you need to travel Morocco by train.
8
Major routes
From 50
MAD per ticket
320 km/h
Al Boraq speed
Morocco's national railway, ONCF (Office National des Chemins de Fer), operates a modern and expanding network that connects the country's major cities. The jewel of the system is the Al Boraq high-speed line -- Africa's first -- which zips between Tangier and Casablanca at 320 km/h, cutting a 5-hour journey to just over 2 hours.
Beyond the high-speed line, conventional trains link Casablanca to Marrakech, Fes, Meknes, Rabat, and even distant Oujda on the Algerian border. Train travel in Morocco is comfortable, affordable, and scenic -- passing through farmland, mountain corridors, and Atlantic coastal stretches that you would miss entirely by air.
This guide provides a route-by-route breakdown with current prices, journey times, frequency, and practical tips for each line. Whether you're planning a quick shuttle between Casablanca and Rabat or a cross-country adventure from Tangier to Marrakech, you'll find everything you need to plan your rail journey.
Africa's First High-Speed Train
Maximum operational speed of 320 km/h on the Tangier-Kenitra section. The Alstom-built trainsets use the same technology as the French TGV. The ride is smooth and virtually silent at full speed.
Spacious seats in both classes with power outlets, fold-down tables, and reading lights. Business class offers extra legroom and a premium lounge at Tangier and Casa Voyageurs stations.
Free Wi-Fi is available on all Al Boraq trains though speeds can vary. Mobile phone signal is strong throughout the journey with 4G coverage along the entire route. A cafe car serves beverages and snacks.
Second class from 149 MAD, first class from 229 MAD for the full Tangier-Casablanca route. Shorter segments (e.g., Tangier-Kenitra) cost less. Early online booking sometimes offers promotional fares.
Route by Route
Detailed breakdown of every significant ONCF route with prices, times, 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 travel in northern Morocco since its 2018 inauguration. The journey that once took 5 hours now takes just over 2 hours. Trains feature spacious seating, power outlets at every seat, and a cafe car. The route passes through the fertile Gharb plain with views of farmland and the Atlantic coast. Peak hours see full trains, so booking in advance is strongly recommended, especially for Friday and Sunday travel.
Tip: Book 2-3 weeks ahead for the best fares. The 7:00 AM and 5:00 PM departures are the busiest. First class includes slightly wider seats and a quieter car but the second-class experience is already excellent.
from 100 MAD
2nd class
The most popular tourist route in Morocco, connecting the commercial capital with the red city. Trains run throughout the day 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 and are noticeably quieter. Second class is perfectly comfortable but can be crowded during holidays and weekends. The Marrakech station is a beautiful 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. The morning trains offer beautiful light as you approach Marrakech with the Atlas in the background.
from 50 MAD
2nd class
The busiest rail corridor in Morocco with shuttle-frequency service between the economic and political capitals. Trains run approximately every 30 minutes during peak hours and hourly during off-peak. This is a commuter-heavy route, so expect business travelers and students rather than tourists. The journey follows the Atlantic coast with occasional ocean views near Mohammedia. Both Casa Voyageurs and Rabat Ville stations are centrally located with good taxi connections. This route also connects to the airport via Casa Voyageurs.
Tip: No need to book in advance for this route -- just show up and take the next train. Second class is fine for the short journey. Avoid the 7-9 AM and 5-7 PM rush hours if you want a guaranteed seat.
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 passing through Rabat and Kenitra, the train climbs through rolling hills and cork oak forests into the Saiss plain. The approach to Meknes offers views of olive groves, and the final stretch to Fes reveals the dramatic setting of the ancient medina in its valley bowl. Consider breaking the journey with a stop in Meknes to visit the grandiose Bab Mansour gate and the Royal Stables.
Tip: The Fes train station is about 3 km from the medina. Take a petit taxi (from 15 MAD) or bus to Bab Boujloud. First class is recommended for this longer journey for the comfort and space.
from 195 MAD
2nd class
The longest standard route connects Morocco's two most-visited cities. There is no direct east-west rail line, so all trains route through Casablanca. Three direct trains daily make the full journey without requiring a change. The trip is long but scenic, crossing the entire north-south gradient of Morocco's Atlantic lowlands. Many travelers prefer to break this into two segments with a night in Casablanca or Rabat. The direct trains include a cafe car serving coffee, tea, and sandwiches.
Tip: For comfort on the 7-hour journey, first class is worth the premium. Alternatively, consider the overnight bus (CTM from 180 MAD) or domestic flights (from 400 MAD one-way). Charge your phone -- power outlets are available in first class.
from 170 MAD (combined)
2nd class
There is no direct train from Tangier to Fes. The optimal routing takes the Al Boraq high-speed train from Tangier to Kenitra (1h), then changes to a conventional train to Fes (2h30). The connection at Kenitra is usually 20-40 minutes, and the station has a waiting room and small cafe. This combined journey is much faster than the old conventional routing (which took 5+ hours) and represents one of the most practical cross-country connections in the network. Purchase both tickets at Tangier station or online.
Tip: Book Al Boraq tickets in advance online and buy the Kenitra-Fes ticket at the counter or on the ONCF app. Allow at least 30 minutes for the connection at Kenitra to account for any delays.
from 220 MAD
2nd class
The eastern trunk line crosses Morocco from the Atlantic to the Algerian border. After 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 the arid eastern steppe approaching Oujda. This is an adventure route for rail enthusiasts rather than a practical transport option (flying is faster). The overnight departure allows sleeping through the long journey, arriving in Oujda by morning. Oujda is the gateway to the Beni Snassen mountains and the Algerian border region.
Tip: Consider the overnight train to save on accommodation. Bring food and water as the cafe car may have limited options on this route. The Taza mountain section is the scenic highlight.
from 50 MAD
2nd class
A short Atlantic coast route connecting Casablanca with the Portuguese-influenced city of El Jadida, a UNESCO World Heritage site. The train follows the coastline south through agricultural land with occasional ocean views. El Jadida is an excellent day trip from Casablanca, offering the atmospheric Portuguese cistern, a fortified medina, and a beautiful beach promenade. The station in El Jadida is about 1 km from the old medina walls.
Tip: Perfect for a day trip from Casablanca. Take a morning train and return in the evening. The Portuguese cistern is the must-see attraction. From 50 MAD in second class, this is one of Morocco's best value train excursions.
Both classes are perfectly viable. Here's what to expect from each 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 |
| Recommendation | Journeys over 2 hours | Short trips under 2 hours |
Step-by-step guide to booking ONCF tickets online or at the station.
The official ONCF website and mobile app allow online booking for all routes including Al Boraq. The app is available for iOS and Android and works well in English and French.
Enter your departure and arrival stations. The system shows all available trains with times, durations, and prices. Al Boraq trains are clearly marked with a lightning bolt icon.
Select first or second class. For Al Boraq, you'll also see Business class on some departures. The price difference is clearly displayed.
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 credit cards (Visa, Mastercard) are accepted. Your e-ticket is sent by email and can also be displayed in the ONCF app. Print or screenshot your ticket -- you'll need to show it on the train.
Arrive at the station 15-20 minutes before departure. Find your platform on the departure boards. For Al Boraq, your car and seat number are on your ticket. For conventional trains, second class seating is unreserved.
What to know about each major station for connections, taxis, and city access.
Casablanca
Main hub station. Connects to all routes including the airport train. Modern facilities with cafes, ATMs, and left-luggage service. Located in the Maarif district, well-connected by tramway.
Casablanca
Secondary station near the old medina and the port. Serves commuter trains to Rabat and the coastal shuttle. Less convenient for long-distance travel.
Marrakech
End of the southern line. Beautiful Art Deco building. Taxi rank and bus stops outside. About 15 minutes from Jemaa el-Fnaa by petit taxi. ATM and cafe in the station.
Rabat
Central Rabat station serving all routes. Walking distance to the medina and major government buildings. Connected to the Rabat-Sale tramway system.
Fes
Main Fes station in the Ville Nouvelle. 3 km from the ancient medina. Petit taxi (from 15 MAD) or bus to Bab Boujloud. Modern station with all facilities.
Tangier
Terminal station for Al Boraq and conventional trains. Located in the city center, walkable to the Grand Socco and the medina entrance. Recently modernized with the Al Boraq launch.
Meknes
On the Fes-Casablanca main line. The station is in the Ville Nouvelle, about 2 km from the historic Bab Mansour. A worthwhile stopover between Fes and Rabat.
Kenitra
Key junction where Al Boraq meets conventional network. Important connection point for Tangier-Fes routing. Modern station with waiting room and cafe.
During Ramadan, train schedules may be adjusted with reduced frequency, especially in the evening hours. Check ONCF.ma for the special Ramadan timetable. Late-night services may be added for Iftar travel.
The rail network does not extend south of Marrakech. To reach Ouarzazate, the Sahara Desert, Agadir, or Essaouira, you'll need to use buses (CTM, Supratours) or private transport. Supratours buses connect at Marrakech station.
There is no formal luggage limit on Moroccan trains, but space can be limited. Overhead racks hold standard suitcases. For larger items, use the luggage areas at the end of each car. Keep valuables with you at all times.
Complete your Morocco transport knowledge with these companion guides.
Terminal info, transport, SIM cards, and tips for all Moroccan airports.
Read GuideRoad conditions, rental tips, and rules for self-driving across the country.
Read GuideHow to explore Morocco on a budget including transport savings.
Read Guide