The dynasty , at Kayseri. 1142-1176 CE. As of 1134, Danishmend dynasty leaders also held the title
Melik (
the King) bestowed in recognition of their military successes by the
Abbasid caliph Al-Mustarshid, although the
Beys (
Emirs) of Danishmend prior to 1134 may also be retrospectively referred to as
Melik. Danishmend Gazi himself was alternatively called "Danishmend Taylu". The Danishmends established themselves in Anatolia in the aftermath of the
Battle of Manzikert in 1071, in which the
Seljuks defeated the
Byzantine Empire and captured most of Anatolia. Gazi took advantage of the dynastic struggles of the Seljuks upon the death of the Sultan
Suleyman I of Rûm in 1086 to establish his own dynasty in central Anatolia. The capital was likely first established in
Amasia. In 1100, Gazi's son,
Emir Gazi, captured
Bohemond I of Antioch, who remained in their captivity until 1103. A Seljuk-Danishmend alliance was also responsible for defeating the
Crusade of 1101. In 1116, the Danishmends helped
Mesud I become the Seljuk sultan. , 557-73 H (1161-1177 CE). In 1130,
Bohemond II of Antioch was killed in a battle with
Emir Gazi, after coming to the aid of the
Armenian Kingdom of Cilicia, which Gümüshtigin had invaded. Gümüshtigin died in 1134 and his son and successor
Melik Mehmed Gazi did not have the martial spirit of his father and grandfather. He is nevertheless considered the first builder of
Kayseri as a Turkish city, despite his relatively short period of reign. When Mehmed died in 1142, the Danishmend lands were divided between his two brothers, Melik
Yaghibasan, who maintained the title of "Melik" and ruled from
Sivas, and
Ayn el-Devle, who ruled from
Malatya. In 1155, Seljuk Sultan
Kilij Arslan II attacked Melik Yaghibasan, who sought help from
Nur ad-Din, the
Zengid emir of
Mosul. However, when Nur ad-Din died in 1174, the Sivas lands were incorporated into the Sultanate. Following the death of Fahreddin in a riding accident in 1172, he was succeeded by his brother Afridun. By 1175, Nasreddin Muhammed had returned to power, and ruled as a Seljuk vassal. In 1178,
Malatya was occupied. This event marked the end of the Danishmend rule, while the remaining Danishmends joined Seljuk service. ==Culture and legend==