Danishmendids
The Danishmend or Danishmendid dynasty (, ) was a Turkish Beylik that ruled in north-central and eastern Anatolia from 1071/1075 to 1178. The dynasty centered originally around Sivas, Tokat, and Niksar in central-northeastern Anatolia, they extended as far west as Ankara and Kastamonu for a time, and as far south as Malatya, which they captured in 1103. In early 12th century, Danishmends were rivals of the Seljuk Sultanate of Rum, which controlled much of the territory surrounding the Danishmend lands, and they fought extensively against the Crusaders. The dynasty was established by Danishmend Gazi for whom historical information is  rather scarce and was generally written long after his death. His title or name, "Dānishmand" () means "wise man" or "one who searches for knowledge" in Persian. Origins. The Turkoman Danishmendid dynasty was founded by Danishmend Gazi. Sources about Danishmend Gazi's origins however, are steeped in "legendary flavor". According to Robert Irwin, Danishmend Gazi was a "Turkoman emir of impenetrably obscure origins". For instance, according to Niketas Choniates, a Byzantine government official and historian and a near-contemporary of Danishmend Gazi, he was of Arsacid descent. According to Matthew of Edessa and Kirakos Vartan, Danishmend Gazi was of Armenian origin , which, as Tahsin Yazici explains, "is not incompatible with Niketas' report". Yazici adds that other historians explained his origins differently. Some identified him as a nephew of Malik-Shah I (1072–1092), Sultan of the Great Seljuk Empire. According to this narrative, Danishmend Gazi was sent by Malik-Shah to conquer Cappadocia. Others viewed Danishmend Gazi as a maternal uncle of Suleiman ibn Qutulmish (1077–1086), the first ruler of the Sultanate of Rum. In addition, some historians believed he was one of the Seljuq commanders who fought at the Battle of Manzikert in 1071. According to Yazici: "Osman Turan's suggestion  that he was a Seljuq envoy to the Ghaznavid court was based on a misunderstanding of a passage in Abu'l Fazl Bayhaqi's "Tarikh-i Bayhaqi" and is thus totally erroneous". According to Robert Gregory Bedrosian (citing Suren Yeremian and Halil Yinanc), Danishmend Gazi was an Armenian Muslim. The "Danishmendnâme", a 14th century (i.e. posthumous) epic romance based on oral traditions dealing with Danishmend Gazi, is likewise filled with "legendary material". According to the "Danishmendnâme", Danishmend Gazi was a native of Malatya. The dynasty. 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". 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 Gümüshtigin. 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. In 1130 Bohemond II of Antioch was killed in a battle with Gazi Gümüshtigin, 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 Mehmed 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 was back in power, and ruled as a Seljuk vassal. In 1178, Malatya was occupied which marked the end of the Danishmend rule, while the remaining Danishmends joined Seljuk service. Culture and legend. Danishmend Gazi, the founder of the dynasty, is the central figure of a posthumous romance epic, "Danishmendnâme", in which he is misidentified with an 8th-century Arab warrior, Sidi Battal Gazi, and their exploits intertwined. Virtually all Danishmend rulers entered the traditions of the Turkish folk literature, where they are all referred to as "Melik Gazi". Hence, there  are "tombs of Melik Gazi", many of which are much visited shrines and belong in fact to different Danishmend rulers, in the cities of Niksar, Bünyan, Kırşehir, along the River Zamantı near the castle of the same name (Zamantı) and elsewhere in Anatolia, and Melikgazi is also the name of one of the central districts of the city of Kayseri. The same uniformity in appellations in popular parlance may also apply to other edifices built by Danishmends. The official title of the Danishmendids was "Grand Melik of All Rum and the East", was always inscribed in the local currency in  Greek, indication of Byzantine influence. The Danishmend's coins, along with being bilingual, included an image of a figure slaying a dragon, thought to represent St. George.