Muhammad ibn Ammar

Abū Bakr Muḥammad ibn ʿAmmār ibn al-Ḥusayn ibn ʿAmmār al-Quḍā'ī (أبو بكر محمد بن عمّار;1031–1086), known as Ibn Ammar, in Spanish sources found as Abenámar, was an Arab poet from Silves.

Ibn Ammar became vizier to the taifa of Seville. Though he was poor and unknown, his skill in poetry brought him the close friendship of the young Abbad III al-Mu'tamid. However, Al-Mu'tamid's father, Abbad II al-Mu'tadid disapproved of the relationship and sent him into exile.

Al-Mu'tamid named him prime minister some time after the death of his father. Ibn Ammar was reputed to be unbeatable at chess; according to Abdelwahid al-Marrakushi, his victory in a game convinced Alfonso VI of Castile to turn away from Seville.

He engineered the annexation of the taifa of Murcia to the kingdom of Seville, and convinced al-Mu'tamid to name him as its governor. He proclaimed himself its king and cut off relations with al-Mu'tamid. He soon fell from power, was captured in an ambush, and was imprisoned in Seville. Al-Mu'tamid was initially inclined to forgiveness, but was later incensed by something he read in an intercepted letter sent by Ibn Ammar from his prison cell. The king then killed the poet with his own hands.