Early modern · state
Saadi dynasty
In 1578 three kings died in a single battle, and the ransoms of Portuguese nobles made Morocco's new sultan the Golden.
The Saadi rise began in 1510, when the tribes of the Sous valley in southern Morocco chose Muhammad al-Qa'im to lead their fight against the Portuguese, who held Agadir and other coastal towns. His son Ahmad al-Araj took Marrakesh by 1525, and his brother Muhammad al-Shaykh drove the Portuguese from Agadir and in 1549 took Fez from the Wattasids, uniting nearly all of Morocco. He refused to accept Ottoman overlordship and was assassinated by an Ottoman agent in 1557.
In 1578 the deposed sultan al-Mutawakkil brought King Sebastian of Portugal and his army to Morocco. At Wadi al-Makhazin near Ksar el-Kebir the Portuguese were crushed, and Sebastian, al-Mutawakkil and Sultan Abd al-Malik all died, hence the Battle of the Three Kings. Abd al-Malik's brother Ahmad al-Mansur took the throne and the ransoms of captured nobles. He modernised the army with firearms on the Ottoman pattern, traded sugar with England and kept Morocco the only part of North Africa outside Ottoman rule.
In 1590 his army under Judar Pasha crossed the Sahara, and in 1591 its guns beat the Songhai at Tondibi and took Gao and Timbuktu. After al-Mansur died in 1603 his sons fought over the throne for years, and the last Saadi sultan was assassinated in 1659.
Read more on Wikipedia.jpg/500px-The_El_Badi_Palace%2C_Marrakesh_(48388399811).jpg)
Sources: en.wikipedia.org/wiki/Saadi Sultanate, en.wikipedia.org/wiki/Ahmad al-Mansur, en.wikipedia.org/wiki/Battle of Alcácer Quibir

