Thoughts on how best to get from Fes to Tangier utilizing public transportation?
Train takes about 5 hours and should cost about $11 in 2nd class or about $18 in 1st class, unless a new high-speed train is up and running. See schedules at www.oncf.ma. In the past, I always used trains where they served and bus or car only where they didn't.
But if your intention is just to get to Europe quickly, then budget airlines fly directly from Fes to Seville, Madrid, Barcelona, Lisbon, Paris, Marseille, Toulouse, Milan, Pisa, Rome, and probably other cities. See www.skyscanner.com to start.