The Devonian–early Carboniferous sequence in the eastern Anti-Atlas represents a complete record of the last stage of the depositional and tectonic evolution along the northwestern margin of Gondwana. As a consequence of early Variscan block faulting, a platform and basin topography was established during the Middle and Late Devonian. Platforms were covered by condensed cephalopod limestones; sedimentation in the basins was mainly argillaceous with calcareous and turbiditic intercalations. In the latest Famennian/early Tournaisian the whole area was covered by delta deposits in the south passing into turbidites and olistostromes toward a continental slope farther north. This sedimentary and structural evolution reflects the gradual foundering and disintegration of the northwestern continental margin of Gondwana prior to the collisional stage in the late Visean/late Carboniferous.