After their introduction, Averroes remained in Abu Yaqub's favor until the caliph died in 1184. When the caliph complained to Ibn Tufayl about the difficulty of understanding Aristotle's work, Ibn Tufayl recommended to the caliph that Averroes work on explaining it. This was the beginning of Averroes's massive commentaries on Aristotle; his first works on the subject were written in 1169.