Najm ad-Din Ayyub

al-Malik al-Afdal Najm ad-Din Ayyub ibn Shadhi ibn Marwan (Arabic: الملك ألأفضل نجم الدين أيوب بن شاﺬي بن مروان)) (died August 9, 1173) was a Kurdish soldier and politician from Dvin, and the father of Saladin. He is eponymous ancestor of the Ayyubid dynasty.

Life and career
Ayyub was the son of Shadhi ibn Marwan and brother of Shirkuh. The family belonged to the tribe of Revend or Revendi, also Rawadiya, itself a branch of the Hadhabani tribe. The earliest form of the name is written "Rewend" in the Sharafnama. According to Vladimir Minorsky, this could have been a corruption of the Arabic name "Rawadiya". Minorsky thus leaves space for a possible Arabic influence on the tribe, although they are generally considered to be Kurdish. Furthermore, Minorsky states that the rulers of the tribe could have given their name to it. In other words, it is possible that the Rewend/Rawadiya rulers were of Arab origin, and arrived in the Dvin region in 758 CE from the Arbela (modern Arbil) region.

The family were closely connected to the Shaddadid dynasty, and when the last Shaddadid was deposed in Dvin in 1130, Shadhi moved the family first to Baghdad and then to Tikrit, where he was appointed governor by the regional administrator Bihruz. Ayyub succeeded his father as governor of Tikrit when Shadhi died soon after.

In 1132 Ayyub was in the service of Imad ad-Din Zengi. He participated in a battle against the Seljuk Sultan near Tikrit and saved Zengi's life when he assisted his retreat across the Tigris. In 1136, Shirkuh killed a Christian with whom he was quarrelling in Tikrit, and the brothers were exiled (Ayyub's son Yusuf, later known as Saladin, was supposedly born the night they left). Zengi later appointed Ayyub governor of Baalbek, and when the town was besieged in 1146 by Mu'in ad-Din Unur, the atabeg of the Burid emir of Damascus, Ayyub surrendered it and retired to Damascus. Shirkuh, meanwhile, entered the service of Zengi's son Nur ad-Din Zengi, who had designs on Damascus; when the Second Crusade besieged the city in 1148, Nur ad-Din forced Mu'in ad-Din and the Burids into a reluctant alliance. Soon Nur ad-Din demanded the city be handed over to him, and Ayyub and Shirkuh negotiated its surrender in 1154. Ayyub remained governor of Damascus under Nur ad-Din's rule. He was held in such honour that he was the only one of Nur ad-Din's officials allowed to remain seated in his presence.

Ayyub's son Saladin also took up service with Nur ad-Din, and he was sent to Egypt to take control in Nur ad-Din's name during the period of joint crusader-Byzantine invasions. In 1170 Ayyub joined him there, either summoned by Saladin himself, or sent by Nur ad-Din to convince Saladin to depose the last Fatimid caliph. Saladin offered the vizierate to him, but he refused, and instead was granted Alexandria, Damietta, and Al Buhayrah as personal fiefs. Many of Saladin's other relatives also joined him in Egypt. Nur ad-Din did not trust Saladin and his family, correctly assuming that they were consolidating power against him; Ayyub publicly supported Nur ad-Din, but privately warned his son that Nur ad-Din should never be allowed to take Egypt from him.

Death
Najm ad-Din Ayyub was injured in a horse riding accident on July 31, 1173, and died on August 9. His death exacerbated the tension between Saladin and Nur ad-Din; the latter had summoned the former to assist in an expedition against the Kingdom of Jerusalem, but Saladin returned home when he heard of his father's death. However the expected confrontation between Nur ad-Din and Saladin did not occur, as Nur ad-Din died the next year, and Saladin eventually took control of the whole of Egypt and Syria.

According to Baha ad-Din ibn Shaddad, Ayyub was "a noble, generous man, mild and of excellent character." He was also "passionately fond of polo". Ibn al-Qalanisi calls him "a man of resolution, intelligence and knowledge of affairs", who prudently handed over Baalbek to a superior force in return for rewards and honours.

His given name was Ayyub (Job), from which comes the Ayyubid dynasty of Saladin and his successors. Najm ad-Din is an honorific meaning "star of the faith".

Family and children
Ayyub had several children with an unknown woman or women:
 * Nur ad-Din Shahanshah (died 1148)
 * Salah ad-Din Yusuf (1137–1193)
 * al-Malik al-Adil Sayf ad-Din Abu Bakr Ahmad (1145–1218)
 * al-Malik al-Mu'azzam Shams ad-Dawla Turan-Shah (died 1181)
 * Taj al-Muluk Abu Sa'id Buri (died 1184)
 * al-Malik al-'Aziz Sayf al-Islam Tughtekin (died 1197)
 * unknown daughters