He wrote a treatise on agronomy entitled Zuhrat al-Bustān wa-Nuzhat al-Adhhān (Arabic: زهرة البستان ونزهة الأذهان, lit. 'The Glory of the Garden and Recreation of the Minds')[11] for the Almoravid prince Tamim, son of Yusuf Ibn Tashufin. Prince Tamim was governor of the province of Granada and patron of Al-Tighnari and other agronomists and botanists.[12]