Ali ibn Abi Talib (Arabic: عَلِيُّ بْن أَبِي طَالِب, romanized: ʿAlī ibn Abī Ṭālib; c. 600–661) was the cousin and son-in-law of the Islamic prophet Muhammad, and was the fourth Rashidun caliph who ruled from 656 to 661, as well as the first Shia imam. Born to Abu Talib ibn Abd al-Muttalib and Fatima bint Asad, a young Ali was raised by his elder cousin Muhammad and was among the first to accept his teachings.