Ubaydallah ibn al-Mahdi
Ubaydallah ibn Muhammad al-Mahdi was an Abbasid prince. He was the son of al-Mahdi, the third caliph of the Abbasid caliphate, and Raytah, daughter of the first Abbasid caliph Abu al-Abbas al-Saffah.
of half-brother Harun al-Rashid
During the reign of his half-brother Harun al-Rashid, Ubaydallah was appointed as governor of Arminiyah and the northwestern provinces in 788/9, succeeding Yazid ibn Mazyad al-Shaybani. He was later appointed to two brief stints as governor of Egypt, in 795 and 796.
In 810 or 811 Ubaydallah died in Baghdad. His nephew al-Amin led the prayers at his funeral.