Find a hostel bedHostels

Casablanca to Rabat by train: Al Boraq, shuttle and day trip tips

Rabat is about an hour north of Casablanca by train. The high-speed Al Boraq is the fastest and arrives at Rabat Agdal; the cheaper local trains stop at Rabat Ville, closer to the old town.

By hostel.casa editors, Updated

Casablanca to Rabat by train takes about an hour or slightly less. The fastest service is the high-speed Al Boraq, which leaves from Casa Voyageurs and stops at Rabat Agdal. The cheaper local trains serve Rabat Ville, which is nearer to the old town. Tickets come from the ONCF website or at the station.

Train options compared

Option From to Time Good for
Al Boraq (high speed) Casa Voyageurs to Rabat Agdal under an hour Speed; continuing to Tangier
Local trains Casa Voyageurs or Casa Port to Rabat Ville around an hour Walking to the medina and Kasbah
Airport train + change CMN, then Casa Voyageurs, then Rabat roughly 1.5 to 2 hours in total Arriving by plane
Bus (CTM and others) Casablanca bus station to Rabat check the operator When trains are full

Our top pick: From Casablanca: Rabat Guided Day Trip with Hotel Transfers

How to read it: Al Boraq runs on a new high-speed line between Tangier, Rabat and Casablanca. Seat61’s Morocco rail guide (checked November 2026) gives about 2 h 10 for Tangier to Casablanca, with hourly departures, and says Rabat Ville is served only by classic trains. Our Rabat time is derived from the published Tangier to Rabat leg (about 1 h 20). The local shuttle between Casablanca and Rabat is slower and its second-class seats are not reserved. Confirm times on the ONCF booking site, oncf-voyages.ma.

Al Boraq vs the local train

Al Boraq is modern, quick and has fixed seats. Fares vary by demand: Seat61 lists second class from about 99 dirhams (≈ 9.9 USD) for the full Tangier to Casablanca trip, higher in first class, and the cheaper fares usually need to be bought ahead and cannot be changed. For the shorter Casablanca to Rabat leg, expect a lower fare, but check the live price for your date.

Local and shuttle trains are cheaper and more flexible, and the double-deck shuttle runs frequently between Casablanca and Rabat. Second-class seats on that shuttle are not reserved, so you take any free seat. It is fine outside rush hour.

Which station and how to reach your hostel

  • Rabat Agdal is a modern station south of the centre. From there, a petit taxi or the tram takes you towards the medina area.
  • Rabat Ville is in the city centre; the medina and the Kasbah are reachable by a short taxi or walk.

Hostel and guesthouse options are in our hostels in Rabat guide.

In Casablanca, Casa Voyageurs has the tram and taxis. Casa Port is a 10 to 15 minute walk from the old medina hostels (see Medina Hostel).

Buying tickets

  1. Use the ONCF website (booking opens about three months ahead, according to Seat61, checked November 2026), the ONCF app or a ticket office.
  2. If your foreign card is declined, try another card or buy at the station with cash.
  3. Choose a seat on Al Boraq when you can; it is reserved.
  4. Keep the ticket until you leave the station; staff check it.

Friday afternoons, Sundays and holidays are busy, so buy earlier. During Ramadan, ONCF publishes a different timetable; Hespress reported extra Al Boraq departures for Ramadan 2026. See Morocco holidays and events for how the calendar changes travel.

From the airport to Rabat

From Mohammed V Airport, the Al Bidaoui train runs about hourly from around 04:00 to 23:00 to Casa Port and Casa Voyageurs (Wikipedia, checked November 2026). From Casa Voyageurs you change for Rabat. Read the full airport to city guide, or compare flights to Casablanca if you have not booked yet. Planning a road trip instead? See car rental at Casablanca airport.

A Rabat day trip from Casablanca

A simple plan: take an early train to Rabat Ville, walk to the Kasbah of the Udayas, see the Hassan Tower and the Mausoleum of Mohammed V, have lunch in the medina, then return before the evening rush. Check the last train back before you leave. If you prefer a guide and a driver, a day trip does the same without timetables.

From Casablanca: Rabat Guided Day Trip with Hotel Transfers

Morocco's capital in a day: Kasbah of the Udayas and Hassan Tower.

Check availability

Why book online

  • Book online and check availability, times and terms on the partner page
  • Pick your date and group size before you pay
  • Ticket details and any cancellation rules are shown on the partner page

Practical tips for the ride

  • Stand clear of the platform edge when Al Boraq arrives; it is fast and quiet.
  • Luggage goes on racks above or at the end of the carriage. Keep your valuables with you, as on any train.
  • Women travelling alone can choose a busy carriage and sit near other families; trains on this corridor are used daily by commuters and students.
  • Prayer times do not stop the trains, but cafés at stations may close briefly; bring water and a snack for Ramadan days when kiosks open late.
  • Rabat is a calmer, greener city than Casablanca, with wide avenues and fewer touts, so it is a gentle second stop for a first trip to Morocco.

What to see in Rabat in a few hours

The Kasbah of the Udayas is a walled fortress above the river with blue-and-white lanes and a quiet garden. The Hassan Tower and the Mausoleum of Mohammed V stand together on a wide esplanade, and the medina has a straight main street with shops and food stalls. Opening hours and entry rules change, so check them on the day. For a longer stay, see the list of guesthouses in hostels in Rabat.

If your train is full

On Fridays, Sundays and holiday weekends, the cheapest seats go first. If your preferred train is full, look at the next departure or the local shuttle, which runs more often than Al Boraq. Do not buy from people at the station who offer tickets; use the ticket office or the official booking site.

Going further

Al Boraq continues to Kenitra and Tangier, where you can reach the north coast and Chefchaouen by bus (see hostels in Chefchaouen). To go south, read Casablanca to Marrakech. To go inland, read Casablanca to Fes.

Staying overnight

If you stay the night, a medina guesthouse or the youth hostel in Rabat is usually cheaper than a hotel. Compare live beds below.

Compare hostel beds in RabatLive prices from our partner Stay22.

We are an independent guide and not connected to ONCF or any operator. Always confirm times and prices with the operator. Booking links belong to our partners, and we may earn a commission at no extra cost to you.

Compare all Casablanca hostels, with live prices, on the home page.

Frequently asked questions

How long is the train from Casablanca to Rabat?

Roughly an hour on the local trains, and a little less on the high-speed Al Boraq. Published Al Boraq times are about 2 h 10 from Tangier to Casablanca and 1 h 20 from Tangier to Rabat, which leaves under an hour between Casablanca and Rabat.

Which Rabat station should I choose?

Al Boraq stops at Rabat Agdal. Rabat Ville is served only by classic trains and is closer to the medina and the Kasbah. Both have taxis and a tram line.

Which Casablanca station do I leave from?

Casa Voyageurs is the Al Boraq station and the main hub. Casa Port also has trains towards Rabat and is nearest to the old medina hostels.

Can I go from Casablanca airport to Rabat without going into the city?

Usually you ride the airport train to Casa Voyageurs and change there. Check the ONCF timetable for any direct service on your date.

Is Rabat a good day trip from Casablanca?

Yes. Many travellers leave in the morning, see the Kasbah of the Udayas and the Hassan Tower, and return in the evening. Check the last train back before you go.

Some links are affiliate links: if you book through them we earn a small commission at no extra cost to you. It funds the research behind this site.

Independent guide — not affiliated with the airport, the city or any operator.

Find a hostel bed