The distance between Tangier and Casablanca defines one of Morocco's most-traveled corridors, linking the Mediterranean port with the Atlantic economic capital. Whether you're planning a train journey, a road trip, or weighing your transport options, understanding the exact distance and what lies between the two cities helps you plan smarter and move with confidence.
Quick answer
The distance between Tangier and Casablanca is approximately 340 kilometers by road and 320 kilometers by rail. By car, the journey follows the A1 autoroute south through Larache, Kénitra, and Rabat, taking roughly three and a half to four hours depending on traffic. High-speed trains cover the route in just over two hours, making rail the fastest and most direct option for travelers moving between Morocco's northern gateway and its largest city.
Morocco's A1 autoroute runs 340 kilometers from Tangier's port district to the heart of Casablanca, threading through coastal plains, inland valleys, and the administrative capital of Rabat. The distance between Tangier and Casablanca represents more than a measure on a map—it connects two cities with distinct rhythms, economies, and roles in the country's infrastructure. Tangier opens onto the Strait of Gibraltar, while Casablanca anchors the Atlantic coast with its port, business districts, and economic muscle. Between them lies a corridor that carries freight, commuters, and travelers in both directions daily. The autoroute itself was completed in phases between 2005 and 2016, transforming what was once a slower coastal road into a tolled, multi-lane highway. The route passes Larache at kilometer 80, crosses the Sebou River near Kénitra at kilometer 180, and enters Rabat at kilometer 250 before continuing south to Casablanca. Drivers pay tolls at three main stations, with the total cost around 80 MAD for a standard vehicle. Traffic thickens near Rabat during morning and evening rush hours, and weekend congestion is common at the approach to Casablanca's northern neighborhoods. The Al Boraq high-speed train, launched in 2018, runs parallel to the highway for much of the route, cutting travel time to two hours and ten minutes from Tangier Ville to Casa Voyageurs. Understanding the Tangier-Casablanca distance matters most when planning connections. Flights, ferries, and onward journeys to Marrakech or Fes all hinge on knowing how long the leg between these two cities will take. Road conditions are excellent year-round, but summer traffic and holiday periods can add 30 to 45 minutes to the drive. Winter fog occasionally slows movement near Larache and Kénitra, especially in early morning. The rail line, electrified and grade-separated, bypasses most weather delays and runs punctually outside of rare maintenance windows. The corridor also holds practical weight for day-trippers. Visitors based in Casablanca often head north to explore Tangier's medina, Kasbah, and clifftop views of Spain. The reverse trip—Tangier to Casablanca—appeals less for sightseeing than for logistics: catching international flights, attending business meetings, or continuing south to Marrakech. Either way, the 340-kilometer span is manageable in a single day, with enough margin to explore one city and return to the other by evening. The geography between the two cities shifts from Mediterranean hills near Tangier to flatter Atlantic plains approaching Casablanca. You'll pass eucalyptus plantations, citrus groves, and stretches of marshland near the Loukkos and Sebou river basins. The highway skirts the edges of smaller cities rather than cutting through them, so the journey feels continuous rather than stop-and-start. Rest stops appear every 60 to 80 kilometers, offering fuel, cafés, and basic facilities. Mobile coverage is uninterrupted along the entire route, and roadside assistance services operate around the clock. Knowing the distance gives structure to a trip that might otherwise feel open-ended. Whether you're booking a train seat, budgeting fuel, or deciding whether to spend a night in Rabat along the way, the 340-kilometer figure is the foundation. It's a distance that can be covered quickly or stretched into a slower journey with stops—but either way, it's a route Moroccans and visitors alike navigate daily with little fuss.
“The 340-kilometer span between Tangier and Casablanca connects Morocco's northern gateway with its Atlantic economic engine, a corridor traveled daily by thousands.”
Tangier and Casablanca are connected by high-speed rail and a major motorway network. The most efficient way to travel between these two cities is by utilizing the national rail infrastructure.
Al Boraq high-speed line from Tanger-Ville to Casa-Voyageurs
A1 motorway via Kenitra and Rabat
Direct CTM or Supratours coach service from Tangier to Casablanca
For train travel, arrive at Tanger-Ville station at least 20 minutes before departure to navigate security checks. If driving, note that traffic congestion is common when entering central Casablanca.
This full-day itinerary is designed for travelers based in Casablanca looking to balance the substantial travel distance with focused exploration in Tangier. The total duration spans approximately 12 to 14 hours, requiring strict time management.
Begin the journey early to maximize daylight hours at your destination. Reserving the early morning for travel ensures you reach the northern coast with a full schedule ahead.
Dedicate this portion of the morning strictly to covering the geographic distance. Depending on your chosen mode of transport, this segment consumes two to four hours of your day.
Disembark in Tangier and transition from the arrival point to the city center. Set aside roughly 20 minutes to navigate from the transit hub to the historic Medina.
Spend three to four hours walking through the Medina and up to the Kasbah. This represents the primary exploration block of the day trip before factoring in the return travel.
Take a break for a midday meal and use this hour as a schedule buffer. Managing your time here prevents rushing to meet your return departure window.
Start the southbound trip back to Casablanca before evening falls. This final transit block concludes the day, splitting your itinerary into roughly equal parts travel and active touring.
The most efficient time to traverse the distance between Tangier and Casablanca is during shoulder season months, specifically avoiding peak congestion periods. Mid-week travel offers the most consistent flow for both rail and road transit.
Mild temperatures 15°C to 24°C
Optimal visibility and stable road conditions prevail during these months.
Pleasant temperatures 17°C to 25°C
Lower humidity levels make for more comfortable long-distance travel.
—
Transit hubs experience peak congestion before 09:00, impacting departure fluidity.
Hot temperatures 20°C to 30°C
Increased heat and heavy demand can affect travel comfort and booking availability.
Verdict: The best window for travel is Tuesday through Thursday during the months of April or October to benefit from stable weather and predictable transit volume.
The distance between Tangier and Casablanca encompasses a significant portion of Morocco's Atlantic corridor, linking the country's primary northern gateway to its largest commercial hub. This route follows major infrastructure developments that have redefined connectivity across the region.
The direct driving distance between Tangier and Casablanca spans approximately 339 kilometers via the A1 motorway. This route provides a consistent link between the two urban centers.
The high-speed rail line, known as Al Boraq, connects the cities along a track distance of roughly 350 kilometers. It is the first high-speed rail service operating on the African continent.
While modern infrastructure is recent, the economic axis between these cities has been central to Moroccan commerce since the development of Casablanca’s port and Tangier’s status as an international zone.
There is no cost to traverse the distance between these cities, as this is a matter of geographic separation rather than a ticketed site.
The route is accessible at all times, with no specific closing hours for the transit corridors themselves.
The entire transit route remains situated within the coastal plains and plateaus of Northern and Central Morocco, avoiding the high-altitude terrain of the Atlas Mountains.
Prepare these essentials before traveling the 240 km between Tangier and Casablanca.
Everything you need to know about distance between tangier and casablanca
The distance between tangier and casablanca is approximately 340 kilometers by road. This span connects Northern Morocco to the country's economic hub.
Travel time varies significantly based on your chosen mode of transit. High-speed rail connections offer a efficient way to traverse the distance between tangier and casablanca.
There is 0 MAD entrance fee for the distance between tangier and casablanca. It is a geographic reality, not a facility that requires payment.
You can plan your journey during any best arrival window of 00:00–23:59. Since the distance between tangier and casablanca is a constant, your timing should depend on traffic conditions or scheduled train departures.
Yes, the Al Boraq high-speed line provides a modern link between these two major urban centers. It significantly reduces the duration required to cross this Northern Morocco corridor.
Road travel covers a similar distance between tangier and casablanca, typically utilizing the A1 motorway. This route allows for flexibility in your itinerary through the Moroccan countryside.
The route is technically open 24 hours a day, 00:00–23:59, for all travelers. You are free to move between these locations at any time that suits your schedule.
Many travelers fail to account for the difference in travel duration between driving and taking the train. Always verify the latest schedules to ensure your trip aligns with your arrival goals.