and Dara shrank or disappeared. After the breakup of the Ilkhanate, an Artukid force waged war against the Ayyubids of Hisn Kayfa in 1334, but were decisively defeated, with the Ayyubids gaining their possessions on the left bank of the Tigris River. During the 14th century, the emirs of Hisn Kayfa also controlled the interior of the Tur Abdin and the castle of Haytham (in the Tur Abdin). In 1334/5 al-Adil Hisn Kayfa seized control over Mayafaraqin, which probably had been governed by a Mongol vassal up to that time. Soon after, Al-Adil installed Zeyd, a Kurdish chief of the Zraki (or Zirki) tribe previously based at the castle of Boşat (the present-day village of Boyunlu, in Silvan district), as his client ruler at Mayafaraqin. It seems that this was in payback for Zeyd's assistance in helping Hisn Kayfa repulse an attack by the Artuqid sultan of Mardin. The Hisn Kayfa emirs also attacked and captured Siirt soon after the Mongol withdrawal. They fought for control of Siirt with forces from Arzan, and al-Ashraf of Hisn Kayfa succeeded in capturing it in 1341/42. In 1349/50, the Kara Koyunlu rose to dominate the region of the Diyar Bakr, and local princes such as those at Hisn Kayfa, paid tribute to them. Also in 1349/50, the emir of Hisn Kayfa, al-Adil, attacked Azran, breaching its walls and destroying the town in order to get revenge on the local ruler. After this victory the town was abandoned and al-Adil bestowed control of the surrounding region on a Kurdish family. In the early and middle 15th century, Aq Qoyunlu Turkmen forces attacked Hisn Kayfa several times, but Ayyubid rulers managed to retain control of the city and the city prospered until very end of the 15th century. In the 14th century, the Ayyubids rebuilt the castle of Hisn Kayfa which served as their stronghold as vassals of consecutively Mamluks and Dulkadirids until they were supplanted by the Ottoman Empire in the early 16th century. Aq Qoyunlu period (1462–1501) During the second half of the 15th century, Hisn Kayfa was still governed by the last remaining Ayyubid dynasty, who owed allegiance to the Turkmen Aq Qoyunlu confederation. The Aq Qoyunlu dynasty was headed by Uzun Hassan from 1452 to 1478. Uzun Hassan's initial capital was at Amida (modern Diyarbakır), which he gained from his brother Jihangir in 1452. From there, Uzun Hassan embarked on a