ONCF - Morocco
ONCF has a ticket office in the giant new ferry terminal at Tanger Med Port. There is only 1 (!) train a day to Tanger Ville. Train 4000 departs at 9.45 from platform 1.

Tanger Med Port, 21-10-2017 Digital photo by Marco van Uden