Yusuf ibn Ayyub ibn Shadhi ( – 4 March 1193), commonly known by the epithet Saladin, was the founder of the Ayyubid dynasty. Hailing from an ethnic Kurdish family, he was the first of both Egypt and Syria. An important figure of the Third Crusade, he spearheaded the Muslim military effort against the Crusader states in the Levant. At the height of his power, Ayyubid territorial control spanned Egypt, Syria, Upper Mesopotamia, the Hejaz, Yemen, the Maghreb, and Nubia. Alongside his uncle Shirkuh, a military general of the Zengid dynasty, Saladin was sent to Egypt under the Fatimid Caliphate in 1164, on the orders of Nur ad-Din. With their original purpose being to help restore Shawar as the to the teenage Fatimid caliph al-Adid, a power struggle ensued between Shirkuh and Shawar after the latter was reinstated. Saladin, meanwhile, climbed the ranks of the Fatimid government by virtue of his military successes against Crusader assaults as well as his personal closeness to al-Adid. After Shawar was assassinated and Shirkuh died in 1169, al-Adid appointed Saladin as . During his tenure, Saladin, a Sunni Muslim, began to undermine the Fatimid establishment; following al-Adid's death in 1171, he abolished the Cairo-based Shia Islamic Fatimid Caliphate and realigned his power with the Baghdad-based Sunni Islamic Abbasid Caliphate. In the following years, he led forays against the Crusaders in Palestine, commissioned the successful conquest of Yemen, and staved off pro-Fatimid rebellions in Egypt. Not long after Nur ad-Din's death in 1174, Saladin launched his conquest of Syria, peacefully entering Damascus at the request of its governor. By mid-1175, Saladin had conquered Hama and Homs, inviting the animosity of other Zengid lords, who were the official rulers of Syria's various regions; he subsequently defeated the Zengids at the Battle of the Horns of Hama in 1175, and was thereafter proclaimed the "Sultan of Egypt and Syria" by the Abbasid caliph al-Mustadi. Saladin launched further conquests in northern Syria and Jazira, escaping two attempts on his life by the Order of Assassins, before returning to Egypt in 1177 to address local issues there. By 1182, Saladin had completed the conquest of Muslim Syria after capturing Aleppo, but ultimately failed to take over the Zengid stronghold of Mosul. Under Saladin's command, the Ayyubid army defeated the Crusaders at the decisive Battle of Hattin in 1187, capturing Jerusalem and re-establishing Muslim military dominance in the Levant. Although the