Ibn Abdun, vizier and secretary to the Aftasid kings of Badajoz, wrote this elegy when the Almoravids killed the last of them, al-Mutawakkil Umar, with his sons al-Fadl and al-Abbas; al-Marrakushi dates their deaths to the start of 485 AH (1092 CE). It opens with a warning against time and its treachery, then names one after another the kings, peoples and heroes time has destroyed, from Dara and the Persian emperors and the lost tribes of Arabia to the Prophet's Companions and the Umayyad and Abbasid caliphs. Only after the caliphs' titles does it turn to the sons of al-Muzaffar, and it ends in praise of itself. Known as al-Bassama, it was given a long historical commentary by the Andalusian man of letters Ibn Badrun of Silves, which tells the story behind every name, and al-Marrakushi wrote that in it Ibn Abdun took “a path no one had taken before him”.