 King Alfonso the Battler conquered Saragossa from the Almoravids on December 18, 1118, after a long blockade. It is not clear whether Avempace then left town or had already left. We know that he looked for shelter in Xàtiba in the court of Abu Ishaq Ibrahim ibn Yusuf Ibn Tashufin, known as Ibn Taʽyasht because Ta‛yasht was the name of his Berber mother. Ibrahim was a brother of the Sultan ‛Ali Ibn Yusuf Ibn Tashfin (d. 1143), and governor of Murcia and the Eastern part of al-Andalus. Avempace was again imprisoned and we may guess the causes. Abu Marwan ‛Abd Malik bn Abi l-‛Ala’ Zuhr (d. 1161) was a famous physician in the service of Ibrahim (he wrote for him the Kitab al-Iqtisad), and al-Maqqari informs us that there was an extreme enmity between Avempace and the father of ‛Abd al-Malik, also a physician, named Abu l-‛Ala’ Zuhr (d. 1130) (Maqqari-N: vol. 3, pp. 432–434). Even worse for him, Abu Nasr al-Fath Ibn Muhammad Ibn Khaqan (d. 1134?) was also a courtier of Ibn Ta‛yasht, to whom he devoted the Qala’id  al-iqyan[2]  a poetry anthology where he contemptuously put Avempace in last place (Ibn Khaqan 1989: 931–947), and where he also disqualified him as a poet, accusing him of plagiarism. The court of Ibrahim ibn Yusuf was not a welcoming place for him.