Getting yourself from Marrakech to Morocco's Atlantic or Mediterranean coast by public transport is entirely achievable, and doing it independently saves money, adds flexibility, and gives you a more grounded sense of how the country actually moves. The trains run on time more often than most visitors expect, the long-distance buses are comfortable and well-priced, and the connections between cities are logical once you understand the system. What trips people up isn't the infrastructure — it's not knowing where to start.
Book ONCF Trains From Marrakech Gare the Right Way
Morocco's national rail operator, ONCF, runs reliable services out of Marrakech's main station, Gare de Marrakech, located just west of the medina. The most useful coastal routes head toward Casablanca, from where you can connect onward to El Jadida, Rabat, or even Tangier. Tickets are genuinely affordable and can be booked through the ONCF website or purchased at the station. First-class coaches are worth the small price difference on longer legs — they're quieter, less crowded, and make the journey genuinely comfortable. Aim to book at least a day ahead if you're traveling on a Friday or during school holidays.
Understand Where the Train Network Ends and the Bus Begins
ONCF doesn't connect every coastal city directly from Marrakech, which is where a lot of independent travelers get confused. Essaouira, one of the most popular coastal destinations from Marrakech, has no train station at all. For routes like this, CTM — Morocco's most reliable long-distance bus company — is the practical solution. CTM operates clean, punctual coaches with assigned seating and air conditioning. Their Marrakech terminal is easy to find near Bab Doukkala, and online booking through the CTM website works smoothly. Knowing which destinations are train-accessible and which require a bus removes a lot of guesswork before you even leave the riad.
Use Supratours for the Train-Bus Combination Routes
Supratours deserves special mention because it's operated in partnership with ONCF specifically to fill in the gaps the rail network leaves behind. If you're heading to Essaouira or Agadir from Marrakech, Supratours runs coordinated coach departures that align with train schedules, making it feel almost seamless. The coaches are comfortable and the pricing is reasonable. You can buy Supratours tickets at ONCF stations, which keeps everything in one place logistically. This is the route most independent travelers end up using for the coast, and it works well once you know it exists.
Time Your Departures Around the Medina's Morning Pace
Marrakech's Gare de Marrakech and the CTM terminal are both accessible by petit taxi from virtually anywhere in the medina, and the rides are short. The challenge is allowing enough time when the city is at its busiest — morning market traffic and the narrow streets around Djemaa el-Fna can slow things down unpredictably. Giving yourself 30 to 40 minutes of buffer when heading to the station in the morning is a reliable habit to adopt. Early departures, typically before 9am, tend to move through the city more smoothly and arrive at cooler, quieter stations.
Store Luggage Strategically If You're Arriving by Night Train
If you're coming into Marrakech on a late train from Casablanca or Rabat before continuing to the coast the next day, luggage storage makes a real difference. Gare de Marrakech has a left-luggage counter that functions reliably during station hours. Several guesthouses and hotels near the station will also hold bags for a small fee, even for non-guests. Using this option lets you spend your remaining hours in the medina without dragging a bag through the souks, which is a significantly better experience by any measure.
Download the Right Apps Before You Leave Home
Having the ONCF app and the CTM website bookmarked on your phone before you arrive in Marrakech means you're not scrambling for information at the station. Google Maps handles Moroccan intercity routes reasonably well for planning purposes, though it occasionally misses bus timings. For real-time adjustments and schedule checking, the ONCF app is more accurate than third-party aggregators. An offline map app like Maps.me is worth having loaded with the Morocco map downloaded — it helps you orient yourself around stations in unfamiliar cities without relying on data.
Plan Your Coastal Arrival City with Onward Options in Mind
Essaouira is a natural first stop for many travelers because it's compact, manageable, and genuinely beautiful — but if you want to keep moving along the coast, it's worth noting that onward connections from Essaouira require returning to Marrakech or taking shared taxis. Agadir, by contrast, has better bus connectivity to the south. El Jadida sits on the ONCF rail line and connects north toward Casablanca or south toward Marrakech with relative ease. Choosing your entry point into the coast based on where you want to go next, not just where you want to arrive, saves doubling back.
Budget for Petit Taxis at Both Ends of Any Journey
Every station and bus terminal in Morocco requires a short taxi ride to reach the center of town or a guesthouse, and petit taxis are the standard solution. They're metered in most cities, though drivers occasionally resist using the meter for tourists — agreeing on a price before you get in is the pragmatic approach. In Essaouira, the distances are short and the fares are small. In Agadir, the city spreads further and the ride can take longer. Keeping small dirham notes available means these short hops don't turn into unnecessary friction at the end of a long travel day.
Morocco's intercity public transport system continues to develop steadily, with ONCF expanding rail capacity and CTM maintaining its reputation for reliability. Travelers who take the time to understand how these networks overlap — rather than defaulting to a guided tour for convenience — tend to come away with a far richer experience of the country. The coast is genuinely accessible from Marrakech on your own terms, and the confidence you build making these connections carries into every trip that follows.