Abu al-Hasan ibn Uthman destroys the Hafsid dynasty of Tunis and restores his authority over all the Maghreb. 1348: Abu al-Hasan dies, his son Abu Inan Faris succeeds him as Marinid ruler. 1348: The Black Death and the rebellions of Tlemcen and Tunis mark the beginning of the decline of the Marinids, who are unable to drive back the Portuguese and the Castilians. 1350: Construction of Bou Inania madrasa in Meknes. 1351: Second seizure of Tlemcen. 1357: Defeat of Abu Inan Faris in front of Tlemcen. Construction of another Bou Inania Madrasa in Fes. 1358 Abu Inan is assassinated by his vizir. A time of confusion starts. Each vizir tries to install weak candidates on the throne. 1358: Abu Zian as-Said Muhammad ibn Faris is named sultan by the vizirs, just after the assassination of Abu Inan. His reign lasts only a few months. Abu Yahya abu Bakr ibn Faris comes to power, but also reigns only a few months. 1359: Abu Salim Ibrahim is nominated sultan by the vizirs. He is one of the sons of Abu al-Hasan ibn Uthman and is supported by the king of Castille, Pedro. 1359: Resurgence of the Zianids of Tlemcen. 1361: Abu Umar Tachfin is named the successor to Abu Salim Ibrahim by the vizirs, with the support of the Christian militia. He reigns only a few months. 1361: The period called the "reign of the vizirs" ends. 1362: Muhammad ibn Yaqub assumes power. He is a young son of Abu al-Hasan ibn Uthman, who had taken refuge in Castile. 1366: Muhammad ibn Yaqub is assassinated by his vizir. He is replaced by Abu Faris Abd al-Aziz ibn Ali, one of the sons of Abu al-Hasan ibn Uthman who until this time had been held locked up in the palace of Fes. 1370: Third seizure of Tlemcen. 1372: Abu Faris Abd al-Aziz ibn Ali dies of disease leaving the throne to his very young son Muhammad as-Said, beginning a new period of instability. The vizirs try on several occasions to install a puppet sovereign. 1373: Muhammad as-Said is presented as the heir to his father, Abu Faris Abd al-Aziz ibn Ali, but being only five years old cannot reign, and dies in the same year. 1374: Abu al-Abbas Ahmad, supported by the Nasrid princes of Granada, takes power. 1374: Partition of the empire into two kingdoms: the Kingdom of Fes and the Kingdom