The earthquake had a magnitude of 6.8 and struck in the High Atlas mountains, about 72 kilometers (44.7 miles) southwest of Marrakech.
Rescue teams are working to reach the most affected areas, but their efforts have been hampered by damage to roads and infrastructure
The Moroccan government has called on international aid organizations to provide assistance.