The trains are quite nice in Morocco, at least they were when I was there around 2005. I travelled from Fez to Marrakech stopping off along the way. I am sure taxis have improved (they seemed to have when I visited Casablanca a few years ago) but when I did the train trip, the train was infinitely better than taking a taxi long distance. 1st class on the train really was OK with compartments, comfy, spacious seats... better than a lot of trains in Europe.