The accident comes after two previous ONCF train crashes.
The National Office of Railways (ONCF) said that the accident did not result in any injuries.
“On October 15, 2019 around 12:20, the AL ATLAS train N ° 610 connecting Marrakech to Casablanca went off the rails near the Bouskoura station,” ONCF said.
The statement added that the accident caused no injuries among the passengers.
ONCF said that its staff “immediately traveled to the scene to take care of the passengers and to transport them to their destination.”
The railway company promised to release more details, apologizing to its customers for the “inconvenience.”
Photos of the accident show four cars off the rail.
This is not the first time that an ONCF train has come off the tracks. On October 16, 2018, Morocco witnessed a tragedy after a train connecting Casablanca and Kenitra derailed near Bouknadel.
The incident killed seven people and injured as many as 125 people.
In January 2019, another ONCF train also came off the tracks in Casablanca, damaging most of its compartments. No passengers were on board, the ONCF said.
A video documenting the accident shows the smashed and overturned compartments of the trail which was derailed in the morning of January 4.