Morocco’s rail network lets you link Casablanca’s Atlantic waterfront, Rabat’s historic monuments and modern avenues, Tangier’s Strait-facing old town and Fez’s medina without driving. Al Boraq carries the first two legs between Casa Voyageurs, Rabat Agdal and Tangier Ville; a conventional Al Atlas service continues east to Fez. That last journey takes much longer, so day five has only a short Fez walk after arrival. You spend one night each in Casablanca and Rabat, enough for one main sight in each. Two nights each in Tangier and Fez leave a full day for their old towns. Choose this route if you enjoy exploring different cities and do not mind changing hotels. If you prefer fewer moves, spend more nights in two cities and save the rest for another trip. Spring and autumn are comfortable for longer walks. In winter, keep an indoor visit in mind for rainy days.