Emirate of Hasankeyf

Hasankeyf Emirate (1232–1524, ) was a Kurdish emirate centered around Hasankeyf and ruled by descendants of the Ayyubid dynasty until its dissolution in 1524. They considered their emirate as the last remnant of the Ayyubid state. The rulers were called melik and continued to lead the emirate from 1232 to 1524 despite invasions and different sovereigns.
The period from the 13th century to the 16th century witnessed the construction of various architectural structures, mostly pertaining to Islamic architecture. Topographer Izz al-Din ibn Shaddad noted, arguably before 1259, that the emirate had three madrasas, four hammams, mausolea, bazaars, caravanserais, mosques and citadels. Around the citadel, there was a town square and fields for wheat, barley and grain growth. However, the living standard took a turn for the worse with the Timurid invasion with most of the local inhabitants fleeing towards the rock caves for safety. Even the Tigris bridge was unusable in this period. Only after a peace agreement was signed between Al-Nasir Muhammad and Abu Sa'id Bahadur Khan in the first part of the 14th century did the emirate prosper again and construction resumed.
The emirate had established several charities which supported educational matters and scholars from the fields of music, poetry and literacy settled in the emirate. Several emirs also collected scholarly works and established libraries for research.
History.
When Timur reached Hasankeyf, the melik of the emirate was Ashraf who submitted himself fully to the Timurid Empire. Melik Ashraf's rule is described as "long and quiet". He was succeeded by his son Khalil who had the unanimous support from all tribes of Hasankeyf and he also pleaded his loyalty to the Timurid Empire who was now led by Timur's son Shah Rukh. When Shah Rukh was fighting the Qara Qoyunlu in Van, Melik Khalil also went to pay homage to the Timurid ruler. Melik Khalil's rule is described as a period of happiness and peace. When Melik Khalil died, he was succeeded by his nephew Khalf who went to war against the Kurdish tribes of Cizre. The rule of Melik Khalf would come to an end when Uzun Hasan of the Aq Qoyunlu besieged Hasankeyf. During this besiege, Melik Khalf was assassinated by a nephew who afterwards opened the gates to the invaders. The nephew did not get to rule the emirate which was handed over to a Turkish chieftain.
The brother of Melik Khalf, Khalil, who had fled to Syria during the events, returned to Hasankeyf with the assistance of the Shirwi tribe whose chiefs worked as viziers for the emirate. Various tribes joined Khalil and they triumphed in taking over not only Hasankeyf but also Siirt from the Aq Qoyunlu. The new Melik Khalil now maintained full independence and he was incomparable with other rulers in Kurdistan. Nonetheless, he was taking prisoner and during a visit to the Safavid Shah Ismail I. The Qizilbash then took control over the emirate and handed over the area to Bejnewi tribe. However, Melik Khalil managed to escape during the Battle of Chaldiran in 1514 and united the people of Hasankeyf as he retook Siirt with Hasankeyf. The Bejnewi tribe was not persecuted but received a village in compensation for the killing of the father of their chieftain.
The hereditary rule of the Emirate of Hasankeyf would come to an end with the death of Melik Khalil. The rivalry among his four sons dovetailed with tribal anger resulted in the hand-over of the emirate to Deli Husrev Pasha, the Ottoman governor of Diyarbakir. The Ottomans ultimately dissolved the emirate.