# Morocco Trains > Morocco Trains is a travel guide covering Morocco's national rail network, operated by ONCF, including the Al Boraq high-speed train and Al Atlas regular trains, routes, classes, and stations. ## About our website This website serves as a comprehensive guide to assist you in planning your rail travel across Morocco, while also providing insightful details about the different train options available. We do not own or operate any of the trains in Morocco; neither we nor our suggested partners for ticket booking services function as rail carriers. Some images on the website are AI-generated; while we strive for accuracy, any mistakes or inaccuracies in these images are not our responsibility. Morocco Trains is brought to you by Rail Ninja. ## Morocco Trains overview Morocco's national rail network, operated by ONCF, spans 4,225 km and connects all major cities with reliable, air-conditioned train services. The high-speed Al Boraq runs Tangier to Casablanca in 2h10 and Tangier to Rabat in 1h20 at speeds up to 320 km/h — the first high-speed rail service launched in Africa, in November 2018. Regular Al Atlas trains cover popular routes like Casablanca–Marrakech (~3h), Casablanca–Fes (~4h), and Casablanca–Rabat (~1h), running every 1–2 hours daily. Second class tickets start from around 5 EUR, first class from 10 EUR, and Al Boraq from 28 EUR. Tickets can be bought online at oncf-voyages.ma up to 6 months in advance, or via Rail.Ninja — the transaction takes under 3 minutes. Children aged 0–3 travel free. Train travel in Morocco is safer and more comfortable than traveling by road, and a popular choice for both locals and international travelers. ## About Morocco Trains and ONCF Morocco has some of the best-kept secrets in the world — a country with a rich cultural history, stunning natural landscapes, and a thriving travelers industry. ONCF trains are appreciated by locals and tourists alike for their reliability and comfort. Tickets can be booked online up to six months before departure, with a choice of class and seat, and large panoramic windows for the journey. Whether for a day trip or a longer overnight journey, trains are the most popular and convenient way to travel across Morocco. In addition to its rail network, ONCF works with Supratours buses to serve cities not currently on the rail line. The network is generally based on French-built infrastructure and continues to grow, with new lines planned to eventually link Marrakech and Agadir to the high-speed network. ## Al Boraq High-Speed Rail Al Boraq is Africa's first high-speed train, launched in November 2018. It runs at up to 320 km/h, connecting Tangier Ville to Kenitra, Rabat, and Casablanca. Trains run every hour, making it easy to find a departure time that fits any itinerary. Al Boraq offers reserved seating throughout and includes a cafe-bar car. The line has built a reputation as the fastest and most comfortable way to travel between these cities. All seats are sold in advance, so booking early is important, especially on popular weekend departures. See: [Al Boraq](https://www.moroccotrains.com/al-boraq-trains) ## Al Atlas Regular Trains and Overnight Services Al Atlas trains serve the broader ONCF network, connecting Casablanca, Marrakech, Fes, Fez, Meknes, Kenitra, Rabat, Tangier, and Oujda. First class offers 6-seat compartments with reserved seats — comfortable for longer trips; second class provides padded seats in open coaches, the most popular choice among budget travelers and locals. Both classes offer air conditioning, large windows, and plenty of legroom compared to buses. For longer routes like Tangier to Marrakech (5h14), ONCF runs overnight trains with couchette cars featuring 4-berth compartments — saving time on the itinerary and arriving well-rested. Double-deck trains run on the busy Rabat–Casablanca corridor, offering plenty of seating throughout the day. See: [Al Atlas](https://www.moroccotrains.com/al-atlas-trains) ## How to buy Morocco train tickets The most popular option is to book online at oncf-voyages.ma or via Rail.Ninja — both let you search routes, view timetables, compare fares, select a seat, and complete the transaction in under 3 minutes. Payment options include credit cards and Apple Pay. Tickets can also be bought directly at the station on the day of travel, though booking in advance is generally cheaper and avoids sold-out trains. E-tickets are issued instantly. Children aged 0–3 travel free on all Morocco trains. Students and groups may find additional discounted options via the ONCF website. ## Popular Morocco Train Routes The most popular routes include Casablanca–Marrakech, Casablanca–Tangier, Casablanca–Rabat, Tangier–Marrakech, Fes–Casablanca, Kenitra–Tangier, and Meknes–Casablanca. Trains generally run every 1–2 hours on popular corridors. For travelers arriving by ferry from Europe or the UK, Tangier Ville station links directly to the Al Boraq line — a convenient connection to Casablanca, Rabat, and beyond. Key stations served include Casa Port, Rabat Ville, Rabat Agdal, Tangier Ville, Fes Railway Station, Marrakech Train Station, Kenitra-Medina, Meknes, and Sidi Kacem — all generally located in city centers. See: [All Popular Routes](https://www.moroccotrains.com/train-routes) ## Frequently Asked Questions - Does Morocco have a high-speed train? - How expensive are Morocco train tickets? - How do I buy Morocco train tickets? - What are the train classes in Morocco? - How long does it take to travel between major cities? - How often do Morocco trains run? - Is it safe to travel by train in Morocco? - Are there overnight trains in Morocco? - Which cities does the Morocco train network serve? - Can I book Morocco train tickets in advance? (Answers to these are covered across the sections above.) ## Why you can trust us - **Easy Booking** — book train tickets with a simple click. - **Optimized & Secure Payments** — 15+ payment options, transaction under 3 minutes. - **High-Quality Amenities** — excellent onboard service on well-equipped trains. ## Booking Rail Ninja is presented as the recommended way to book Morocco train tickets. A Rail Ninja mobile app is also available for booking and managing trips. See: [Book Tickets](https://rail.ninja/morocco-trains) ## Key pages - [All Trains](https://www.moroccotrains.com/oncf-trains) - [Al Boraq](https://www.moroccotrains.com/al-boraq-trains) - [Al Atlas](https://www.moroccotrains.com/al-atlas-trains) - [1st Class Seat](https://www.moroccotrains.com/first-class) - [Economy Class Seat](https://www.moroccotrains.com/economy-class) - [All Popular Routes](https://www.moroccotrains.com/train-routes) - [Casablanca to Marrakech](https://www.moroccotrains.com/casablanca-to-marrakech-train) - [Casablanca to Tangier](https://www.moroccotrains.com/casablanca-to-tangier-train) - [Casablanca to Fes](https://www.moroccotrains.com/casablanca-to-fes-train) - [Casablanca to Rabat](https://www.moroccotrains.com/casablanca-to-rabat-train) - [Marrakech to Tangier](https://www.moroccotrains.com/marrakech-to-tangier-train) - [All Train Stations](https://www.moroccotrains.com/train-stations) - [Marrakech Train Station](https://www.moroccotrains.com/marrakech-train-station) - [Casa Port Train Station](https://www.moroccotrains.com/casa-port-train-station) - [Tangier Ville Station](https://www.moroccotrains.com/tangier-ville-train-station) - [Rabat Ville](https://www.moroccotrains.com/rabat-ville-train-station) - [Fes Railway Station](https://www.moroccotrains.com/fes-train-station) - [Kenitra-Medina Train Station](https://www.moroccotrains.com/kenitra-medina-train-station)