Arabic: Marīniyūn) was a dynasty of Zenata Berber descent that ruled Morocco from the 13th to the 15th century. The Marinids overtook the Almohads controlling Morocco in 1244, and briefly controlled all the Maghreb in the mid-14th century. They supported the Kingdom of Granada in Al-Andalus in the 13th and 14th centuries; an attempt to gain a direct foothold on the European side of the Strait of Gibraltar was however defeated at the Battle of Salado in 1340 and finished after the Castilian conquest of Algeciras from the Marinids in 1344. During Marinid rule, Jews were able to return to their religion and practices, once again outwardly professing their Judaism under the protection of the dhimmi status. They were able to re-establish their lives and communities, returning to some sense of normalcy and security. They also established strong vertical relations with the Marinid sultans. When the still-fanatic mobs attacked them in 1275, the Merinid sultan Abu Yusuf Yaqub ibn Abd Al-Haqq intervened personally to save them. The sovereigns of this dynasty benevolently received the Jewish ambassadors of the Christian kings of Spain and admitted Jews among their closest courtiers. Of these Jews, Khalifa b. Waqqāsa (Ruqqasa) became steward of the household of the sultan Abu Yaqub Yusuf an-Nasr and his intimate counselor. A victim of palace intrigues, he was put to death in 1302. His nephew, who was also named Khalifa, held the same office and suffered the same fate (1310). However, there were no repercussions against the Moroccan Jews as a result of the execution of their powerful coreligionists. They were the principal factors in the prosperity of the country. The Sahara gold trade, which was of primary importance, and the exchange with the Christian countries were completely under their control. Their relatives and associates in the kingdom of Aragon financed, when necessary, the navies which defended the Moroccan ports. In addition to the jizya (tax paid by non-Muslims), they paid enormous sums to the treasury in customs duties for their imports and exports. In the outlying areas, particularly in the Atlas region where there were large concentrations of Jews of early origin, the Jews wielded great influence in both the political and spiritual domains. Jewish physicians enjoyed well-deserved renown. The study of Kabbalah, as well as philosophy, was then in vogue. The last Moroccan philosopher of the Middle Ages was Judah b. Nissim ibn Malkah, who was still