The work recounts the story of Sultan Abu al-Hasan al-Marini, whose forces, led by his son Abu Malik, reclaim Gibraltar from the Castilians, while Queen Isabella and Ferdinand of Castile seek to expel the Muslims from Granada.