The Wattasids were a dynasty in Morocco. They followed the Idrisids and were followed by the Saadids. The Idrisids were the first Arab dynasty in the western Maghreb, ruling from 788 to 985, and can be thought of as the originators of an independent Morocco. ...
Local tribesmen who claimed descent from the prophet Muhammad combined with Sufi leaders to eject both Europeans and the reigning Wattasid dynasty during the 16th century.
The Wattasids of Fez, alarmed at the Sadi control of southern Morocco, declared war.
In Jan. 1549 he occupied Fez, ejected the Wattasids, and became sultan of Morocco.
These viziers assumed the powers of the Sultans, seizing power when the last Marinid, Abu Muhammad Abd al-Haqq, who had massacred many of the Wattasids in 1459, was murdered during a popular revolt in Fez in 1465.
Abu Abd Allah al-Sheikh Muhammad ibn Yahya al-Mahdi was the first Wattasid Sultan, but controlled only northern Morocco, the south being dominated by the Saadi dynasty.
The Wattasids were finally replaced by the Saadi Dynasty in 1554.