The Atlas Mountains extend some 2,500km across northwestern Africa, spanning Morocco, Algeria and Tunisia, separating the Atlantic and Mediterranean coastline from the Sahara Desert.
The Middle Atlas is a portion of the Atlas mountain range lying completely in Morocco. The Middle Atlas is the westernmost of three Atlas Mountains chains that define a large, plateaued basin extending eastward. South of the Middle Atlas and separated by the Moulouya and Oum Er-Rbia rivers, the High Atlas stretches for 700 kilometres (430 mi) with a succession of peaks among which ten reach above 4,000 metres (13,000 ft). North of the Middle Atlas and separated by the Sebou River, the Rif mountains are an extension of the Baetic Cordillera in the south of Spain.