Yahya Ibn Khalid (يحيى بن خالد) was an influential figure during the tenure of Abbasid caliph Harun Al-Rashid. We do not know the precise date of his birth, but he was the son of Khalid Ibn Barmak, a member of the powerful Persian family known as the Barmakids. The third Abbasid caliph, Al-Mahdi, tasked Yahya Ibn Khalid around 778 A.D. with the education of his son Harun. Yahya must have perceived the seeds of greatness in the young Harun, for he tried to convince the fourth Abbasid caliph Al-Hadi to elevate Harun to a high position of leadership. This was a mistake. Al-Hadi had his own son in mind for the position, and so tossed Yahya into prison; but Fate would eventually smile on Yahya.