Casablanca from Marrakech
How do you get from Marrakech to Casablanca and is it worth a day trip?
The ONCF train is the best way — about 2.5 hours direct, for a few hundred MAD, versus roughly 3.5 hours by road. It's worth doing specifically for the Hassan II Mosque, the only mosque in Morocco open to non-Muslim visitors, on a guided interior tour. Casablanca itself is a large modern business city rather than a scenic destination, so go for the mosque, not general sightseeing.
Casablanca is the one day trip on this list that isn’t really about scenery. Morocco’s largest city and its economic capital, it’s a sprawling, modern, business-first place without the historic medina charm that draws visitors to Marrakech, Fez or Essaouira. What it does have, and what justifies the trip on its own, is the Hassan II Mosque — the only mosque in Morocco open to non-Muslim visitors, and one of the largest religious buildings in the world.
That single-attraction focus actually makes planning simpler than most day trips on this site. This is a guide to getting there efficiently, seeing the mosque properly, and knowing honestly what else is and isn’t worth your limited time in the city.
| Where | About 2.5 hours by direct train, or roughly 3.5 hours by road |
| Cost | Train fare a few hundred MAD return; mosque guided tour around 140 MAD |
| Time needed | A full day if travelling by train; the mosque tour itself runs about an hour |
| Getting there | ONCF direct train (recommended), private transfer, or self-drive |
| Best time | Morning departure to allow a full day; avoid Fridays for the mosque tour schedule |
Getting there: train beats road
The ONCF railway operates a direct service between Marrakech and Casablanca, taking roughly 2.5 hours each way — noticeably faster than the approximately 3.5-hour drive, and it avoids both the tedium of the highway and Casablanca’s genuinely difficult city traffic once you arrive. Fares run a few hundred dirhams for a return second-class ticket, with first class available for a bit more if reserved, comfortable seating matters to you. Trains run multiple times a day, making an early-morning departure and evening return entirely feasible without needing to book the very first service.
Arriving by train also solves the trickiest part of a Casablanca day trip: getting into and around a large, congested city without local knowledge. The central station puts you within a reasonable taxi ride of the mosque, avoiding the need to navigate unfamiliar city traffic yourself.
The Hassan II Mosque
The mosque is the reason most visitors make this trip at all, and it earns the reputation. Completed in 1993, it sits directly on the Atlantic coast — part of the building extends over the water — with a minaret among the tallest in the world and interior craftsmanship, marble, cedar and zellige tilework, that took thousands of artisans years to complete. Critically, it’s the only mosque in the entire country open to non-Muslim visitors, since Morocco generally restricts mosque access to worshippers.
Entry is by guided tour only, at scheduled times through the day, and costs around 140 MAD. Tours don’t run during prayer times, and Friday’s schedule is more limited given the day’s significance for communal prayer, so it’s worth checking current times rather than assuming the same slots apply every day. This Casablanca day tour with Hassan II Mosque visit bundles the transfer and guided mosque entry into a single booking, a reasonable way to handle the logistics if you’d rather not coordinate the train and tour separately.
What else is worth your time in Casablanca
Beyond the mosque, Casablanca’s appeal thins quickly for a day-trip visitor. The old medina exists but is smaller and less atmospheric than Marrakech’s or Fez’s, the Corniche waterfront area offers a pleasant enough walk and café scene without being a must-do, and the city’s Art Deco architecture from its French colonial period is genuinely interesting to those who seek it out specifically but easy to miss without local guidance. For most visitors on a single day trip, the honest advice is to build the day around the mosque and not force additional sightseeing that the time budget doesn’t comfortably support.
This full-day Casablanca tour with lunch and the mosque is a reasonable option if you want a fuller day with a proper meal built in rather than fending for yourself between the station and the mosque.
Alternatives to a fully independent trip
If coordinating the train timetable and mosque tour schedule yourself feels like more logistics than you want to handle, this Casablanca day tour with mosque visit handles transport and entry as a single road-based package, at the cost of the flexibility an independent train trip gives you — a comparable day trip by van runs a similar format if you’re weighing options by price or departure time. This day trip to Casablanca with a local guide adds a guide for the wider city as well as the mosque, useful if you do want to see more of Casablanca beyond the single main attraction.
Whichever way you go, plan for a genuinely full day — between the roughly 5 hours of round-trip travel by train and the time needed at the mosque and station, this isn’t a trip that leaves much room for anything else on the same day.
What the ONCF booking process actually involves
Booking the train is straightforward but worth knowing in advance rather than figuring out at the station. Tickets can be bought online through the ONCF website or app, or in person at Marrakech’s main station before departure — advisable to do a day ahead if your travel dates fall on a weekend or during a Moroccan public holiday, when the more popular departures can sell out. Second class is perfectly comfortable for a single day trip; first class buys guaranteed reserved seating and a quieter carriage, worth the modest price difference if you’d rather not stand for any part of a busy service.
Marrakech’s station sits a short taxi ride from most central hotels and the medina, and Casablanca’s main station, Casa Voyageurs, is the one to arrive at for onward taxi connections to the mosque — a different, smaller station (Casa Port) sits closer to the old medina but sees fewer of the direct Marrakech services, so confirm which one your specific train uses when booking.
A practical day-trip schedule
A workable itinerary looks roughly like this: an early train from Marrakech, arriving in Casablanca mid-morning, a taxi to the Hassan II Mosque for a scheduled guided tour, lunch somewhere near the Corniche or old medina if time allows, and an afternoon or early-evening train back. Built this way, the day comfortably includes the mosque and a reasonable buffer without needing to rush the return journey — a sensible template whether you’re organising each leg yourself or booking a bundled tour that follows broadly the same shape.
What makes the mosque architecturally significant
Beyond its scale, the Hassan II Mosque is notable for how it blends traditional Moroccan craft techniques with modern engineering. The zellige tilework, carved cedar ceilings and stucco work throughout the interior were produced by thousands of Moroccan artisans using centuries-old methods, while the building itself incorporates a retractable roof over the main prayer hall and modern reinforced construction needed to support a structure of its size directly on the coastline.
The combination of hand-crafted decorative work at this scale with contemporary structural engineering is unusual even among the world’s largest religious buildings, and it’s part of what the guided tour specifically explains that a casual walk past the exterior wouldn’t convey.
The site chosen for the mosque is itself significant: built partly over the ocean on land reclaimed for the purpose, a deliberate architectural reference to a Quranic description of God’s throne being built upon water. Whether or not that detail matters to you personally, it explains the specific coastal setting and the dramatic effect of waves breaking against the building’s base, visible from several points during the guided tour.
For the wider comparison of day trip options from Marrakech, see the best day trips from Marrakech, and for train and bus logistics across the country more broadly, trains and buses in Morocco. Anyone planning their first days in the city before or after this trip should also read Marrakech for first-timers.
Best day trips from Marrakech on GetYourGuide
Verified deep-linked GetYourGuide tours. Book through these links and we earn a small commission at no cost to you.
Photo: our own image of the location, not the operator’s product photo.


