Al-Khayzuran bint Atta (died November 20, 789) was a poet, writer, political figure, and wife of Abbasid caliph Al-Mahdi. Born in Jorash, near modern Bisha in Saudi Arabia, she was abducted as a child and sold into slavery near Mecca. Al-Mahdi later freed and married her. She was known for her intelligence and education, studying subjects that included theology and jurisprudence.
During Al-Mahdi’s reign, from 775, Al-Khayzuran became a powerful presence in court and state affairs. The caliph sought her counsel, and she received petitioners, met officials and foreign ambassadors, and influenced appointments and decisions. She maintained her own court and administrative network, as well as extensive commercial interests. She also played a role in securing the succession of her sons, Harun al-Rashid and Al-Hadi, despite the customary barriers facing the sons of a former slave.
When Al-Mahdi died in 785, Al-Khayzuran helped secure the army’s allegiance to Al-Hadi by arranging payment of its wages. Their relationship soon became strained as he sought to exclude her from political life. Accounts report that she continued to intervene in state matters despite his objections; she was also rumored to have arranged his death, though the details are uncertain. Her younger son, Harun al-Rashid, did not resist her political participation and relied on her counsel. Al-Khayzuran remained influential until her death in 789.