to which Khalid belonged Khalid was likely born around 668. He was the son of the
Umayyad caliph
Yazid I () and
Fakhitah bint Abi Hisham ibn Utba ibn Rabi'a. When his older half-brother
Mu'awiya ibn Yazid died after a very short reign as caliph in 684, Khalid was still a minor. A struggle for succession broke out between the supporters of the young Khalid and those who favored
Marwan ibn al-Hakam (623 or 626–685), who was not part of the ruling branch of the
Umayyad family (the Sufyanids), but was much older and more experienced. Eventually Marwan was elected by the Umayyad
Syrian elites on the condition that Khalid would directly succeed him. Marwan also married Khalid's mother Fakhita to seal the bond between him and his would-be successor Khalid. However, seeing that Khalid was politically weak, Marwan removed both him and his younger brother
Abd Allah ibn Yazid from the line of succession in favor of his own sons
Abd al-Malik and
Abd al-Aziz. When Khalid reminded Marwan of the promise he made at his ascension, Marwan publicly insulted his mother Fakhita. According to what is probably a later legend, Fakhita killed Marwan in revenge. Despite this, close ties developed between Khalid and Marwan's son Abd al-Malik, and when the latter became caliph Khalid became his adviser and married his daughter A'isha. In the summer of 691, Khalid was made a commander in Abd al-Malik's siege of the Qaysi leader
Zufar ibn al-Harith al-Kilabi in
al-Qarqisiya in the
Jazira. After this victory, the caliph appointed Khalid commander of his army's left wing at the
Battle of Maskin (691) against
Mus'ab ibn al-Zubayr, which resulted in the Umayyad conquest of Zubayrid Iraq. After this short spell as a military commander, Khalid appears to have spent the rest of his life in
Homs, which had been appointed to him as an
emirate already by Marwan. He may have engaged in some level of
poetry and
hadith scholarship. He died in 704 or 709. ==Legend==