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.
Choosing between Casablanca and the other day trips
Casablanca sits at the opposite end of the spectrum from the mountain and desert excursions that most people picture when they plan a day out of Marrakech. If what you want is landscape, the Ourika Valley guide and the Atlas Mountains day trip guide describe a very different kind of day, with cooler air, village stops and walking. If you want a historic walled town by the sea, the Essaouira day trip guide covers a place with far more atmosphere per hour than Casablanca offers, and the transport options to Essaouira are worth comparing before you decide.
The honest way to choose is to ask what you want to remember afterwards. Casablanca gives you one extraordinary building and a glimpse of how modern Morocco lives and works. It does not give you the sensory overload of the medina, so travellers who are already planning to spend several days among the lanes described in the Marrakech medina walking route may actually find the contrast refreshing. Those with only a few days in the country may prefer to spend them closer to home, and the 3 vs 5 days comparison helps with that trade-off.
Fitting the trip into a longer stay
A full day away from the city has a cost, so it helps to place it sensibly in the wider plan. Many visitors slot Casablanca into the middle of a stay, after the first intense days in the medina and before a trip into the mountains or desert. The 3-day Marrakech itinerary and the 5-day itinerary both leave room for one out-of-town day, and you can swap that slot for Casablanca if the mosque appeals more than the alternatives.
If you are weighing a guided tour against the train, the guide on guided tours versus independent travel lays out the general logic, which applies well here. The train is simple enough that most travellers manage it alone, while the tour approach makes sense if you dislike planning or have limited time to coordinate the mosque slot.
Practical habits that make the day smoother
A few simple habits help on any long day trip. Carry some cash for taxis and small purchases, and agree on the fare method before you set off from the station, a point covered in more depth in the Marrakech taxi guide. Dress modestly for the mosque, with covered shoulders and knees, and bring a light layer because the coastal air can feel cooler than the interior; what to wear in Marrakech gives general guidance on appropriate clothing that carries over to this trip.
Keep your bag light, since you will be walking, queuing and sitting on a train for several hours. Bring water, charge your phone before leaving, and download your ticket so you are not relying on a signal at the station. If you are travelling solo, the advice in the solo female travel guide on moving confidently between stations and taxis is equally useful in Casablanca, a bigger and busier city than the one you left.
Finally, leave a margin before the return train. Casablanca’s traffic can slow the ride back to the station, and missing the last convenient departure turns a pleasant day into a stressful one. Plan to be back at the station comfortably early, and treat any extra time as a chance for a coffee rather than another stop on the map. For wider planning on costs, the Marrakech budget guide helps you see where a day trip fits against your overall spending.
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. For a lighter alternative that stays in town, the blog post Marrakech in 48 hours shows how much fits into a short stay.
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.


