 Continuing from the Neoproterozoic until the Middle Devonian, western Morocco and the Anti-Atlas had the same depositional environment—molasse redbed deposition and post-orogeny volcanism.Southern Morocco was flooded by a massive shallow marine shelf, building up significant carbonates, mixed with continental sediments pouring in from inland areas now in the Sahara.In the Late Devonian, western Morocco and the Anti-Atlas split up into fault-bounded basins, which deformed during the Hercynian orogeny.