 Given the social position of his family, Ibn Rushd soon found himself in the ruling circles of Marrakesh and close to the princes, or at least some of them, in Andalusia. He engaged in debates on philosophical and theological issues with this inner circle, and there is a record of a meeting with Abū Yaʿqūb Yūsuf (r. 1163–84), the second Almohad ruler, who officially asked Ibn Rushd to comment on Aristotle’s works and render them accessible. Later he became chief physician to the caliph in Marrakesh.