Abu Yusuf
After losing a naval battle off Tarifa, Abu Yusuf, wary of being cut off from Morocco, decided to return home. Abu Yusuf, Muhammad and Castile agreed to a two-year truce in late December 1275 or early January 1276. Before Abu Yusuf left, Muhammad's secretary Abu Umar ibn Murabit wrote a poem expressing fear of Castile's power and appealing for the Marinids' continued help ("see box"). Abu Yusuf left Spain and landed at Ksar es-Seghir on 19 January.