Morocco endured a prolonged multifaceted crisis in the 15th and early 16th centuries brought about by economic, political, social and cultural issues.
The Wattasid family had been the autonomous governors of the eastern Rif since the late 13th century, ruling from their base in Tazouta (near present-day Nador).
While the Marinid dynasty tried to repel the Portuguese and Spanish invasions and help the kingdom of Granada to outlive the Reconquista, the Wattasids accumulated absolute power through political maneuvering.
When the Marinids became aware of the extent of the conspiracy, they slaughtered the Wattasids, leaving only Abu Abd Allah al-Sheikh Muhammad ibn Yahya alive.
As a result, the people of Morocco tended to regard the Saadians as heroes, making it easier for them to retake the Portuguese strongholds on the coast, including Tangiers, Ceuta and Maziɣen.