In 1184 Caliph Abu Yaqub died and was succeeded by Abu Yusuf Yaqub. Initially, Averroes remained in royal favor but in 1195 his fortune reversed. Various charges were made against him and he was tried by a tribunal in Córdoba. The tribunal condemned his teachings, ordered the burning of his works and banished Averroes to nearby Lucena. Early biographers' reasons for this fall from grace include a possible insult to the caliph in his writings but modern scholars attribute it to political reasons. The "Encyclopaedia of Islam" said the caliph distanced himself from Averroes to gain support from more orthodox "ulema", who opposed Averroes and whose support al-Mansur needed for his war against Christian kingdoms. Historian of Islamic philosophy Majid Fakhry also wrote that public pressure from traditional Maliki jurists who were opposed to Averroes played a role.