[Ali ibn Abi Talib](/dashboard/quran/genealogy/ali-ibn-abi-talib) holds a unique and revered position in [Islamic history](/dashboard/wiki/saba-sheba-and-the-queen-bilqis) as both a close relative of [Prophet Muhammad](/dashboard/quran/genealogy/prophet-muhammad) and a leader who presided over a critical and turbulent period in the early Muslim community. His life and [caliphate](/dashboard/wiki/al-andalus-islamic-spain) continue to be studied for their theological, political, and spiritual significance.
## Early Life and Acceptance of Islam
[Ali ibn Abi Talib](/dashboard/quran/genealogy/ali-ibn-abi-talib) was born in Mecca into the Banu Hashim clan of the [Quraysh](/dashboard/quran/genealogy/fihr-ibn-malik) tribe. He was the cousin of [Prophet Muhammad](/dashboard/quran/genealogy/prophet-muhammad) and was raised in the Prophet's household. Notably, Ali is recognized as the first male to accept Islam, embracing the message of monotheism at a young age. This early acceptance earned him a distinguished status among the Prophet's [companions](/dashboard/wiki/the-ten-promised-paradise-al-ashara-al-mubashsharun) and followers. His close relationship with [Muhammad](/dashboard/quran/genealogy/muhammad) included [marriage](/dashboard/wiki/nikah-marriage-in-islam) to the Prophet's daughter Fatimah, further solidifying his central role within the nascent Muslim community.
## Title and Reputation: The Gate of Knowledge
Ali is often referred to as 'Bab al-‘Ilm' (Gate of Knowledge) due to his profound understanding of the Quran and [Islamic jurisprudence](/dashboard/wiki/usul-al-fiqh). His wisdom and eloquence are immortalized in the Nahj al-Balagha (Peak of Eloquence), a collection of sermons, letters, and sayings that highlight his theological insight, ethical guidance, and political acumen. This work remains a foundational text in Islamic literature, especially revered in Shia Islam.
## Caliphate and Political Challenges
Ali became the fourth [caliph](/dashboard/quran/genealogy/uthman-ibn-affan) in 656 CE after the [assassination of Uthman](/dashboard/quran/timeline/assassination-of-uthman) ibn Affan. His rule was marked by significant internal strife and civil war. The [Battle of the Camel](/dashboard/quran/timeline/battle-of-the-camel) (656 CE) was fought against forces led by Aisha, [Talha](/dashboard/quran/genealogy/talha), and Zubair, who opposed his leadership. Subsequently, the [Battle of Siffin](/dashboard/quran/timeline/battle-of-siffin) (657 CE) against [Muawiya](/dashboard/quran/genealogy/muawiya) ibn Abi [Sufyan](/dashboard/quran/genealogy/sufyan), the governor of Syria, further divided the Muslim community. The arbitration following Siffin led to the rise of the Kharijites, a faction that rejected both Ali and Muawiya's claims to leadership and later rebelled against Ali's authority.
## Confrontation with the Kharijites and the Battle of Nahrawan
The Kharijites emerged as a radical group opposing Ali after the arbitration at Siffin. They considered both Ali and [Muawiya](/dashboard/quran/genealogy/muawiya) illegitimate and engaged in violent rebellion. Ali confronted the Kharijites at the [Battle of Nahrawan](/dashboard/quran/timeline/battle-of-nahrawan) in 658 CE, decisively defeating them. Despite this victory, the Kharijites continued to pose a threat, ultimately leading to Ali's assassination by a Kharijite extremist in 40 AH (661 CE).
## Capital Relocation to Kufa
During his [caliphate](/dashboard/wiki/al-andalus-islamic-spain), Ali moved the political capital of the Muslim state from [Medina](/dashboard/wiki/al-ansar-the-helpers) to Kufa in present-day Iraq. This strategic move was intended to consolidate his power base and better manage the ongoing conflicts. Kufa became a center of Islamic learning and political activity under Ali's leadership, influencing the development of [Islamic jurisprudence](/dashboard/wiki/usul-al-fiqh) and [theology](/dashboard/wiki/creation-of-the-heavens-and-earth).
## Assassination and Legacy
Ali was assassinated in 40 AH (661 CE) by [Abd al-Rahman ibn Muljam](/dashboard/quran/genealogy/abd-al-rahman-ibn-muljam), a Kharijite, while praying in the Great Mosque of Kufa. His death marked the end of the Rashidun [Caliphate](/dashboard/wiki/al-andalus-islamic-spain) and led to the establishment of the [Umayyad dynasty](/dashboard/wiki/the-umayyad-caliphate) under [Muawiya](/dashboard/quran/genealogy/muawiya). Ali's legacy is profound, as he is venerated as a paragon of justice, piety, and knowledge. His leadership style and the circumstances of his rule have deeply influenced Islamic political thought.
## Sunni and Shia Perspectives
Sunni Muslims regard Ali as the fourth and final of the 'Rightly Guided Caliphs' (Rashidun), emphasizing his role as a just and capable leader who upheld Islamic principles. Shia Muslims, however, hold Ali in even higher esteem as the first Imam and the rightful successor to [Prophet Muhammad](/dashboard/quran/genealogy/prophet-muhammad) by divine appointment. This divergence in views on Ali's status and [caliphate](/dashboard/wiki/al-andalus-islamic-spain) is a foundational element of the Sunni-Shia split, influencing theological doctrines, religious practices, and political allegiances within Islam.