Мариниды
According to historian Ibn Khaldun, when the Marinid dynasty took control over Salé from the Almohad Caliphate, Yacoub ben Abdellah Marinid rebelled against his uncle Abu Yusuf Yaqub ibn Abd Al-Haqq, and sought the assistance of King Alfonso X. Ruy López de Mendoza, Admiral of Castile formed an armada to assist the Castilian crusades on the North African coast. Salé was an important strategic and commercial centre, and also the gateway to Azghar, the region of northern Morocco.