A horseman of the Quraysh tribe's aristocratic Makhzum clan, which ardently opposed Muhammad, Khalid played the instrumental role in defeating the Muslims at the Battle of Uhud in 625. Following his conversion to Islam in 627 or 629, he was made a commander by Muhammad, who bestowed on him the title "Sayf Allah" (the Sword of God). Khalid coordinated the safe withdrawal of Muslim troops during the abortive expedition to Mu'ta against the Arab allies of the Byzantines in 629 and led the Bedouin contingents of the Muslim army during the capture of Mecca and the Battle of Hunayn in . After Muhammad's death, Khalid was appointed to suppress or subjugate Arab tribes in Najd and the Yamama (both regions in central Arabia) opposed to the nascent Muslim state, defeating the rebel leaders Tulayha at the Battle of Buzakha in 632 and Musaylima at the Battle of Aqraba in 633.