In 1549, the region fell to successive Arab dynasties claiming descent from the Islamic prophet, Muhammad: first the Saadi dynasty who ruled from 1549 to 1659, and then the Alaouite Dynasty, who remained in power since the 17th century.