of Erzurum. In 1201/1202 the Mengujekids, vassals of the Seljuks of Rum, took over. Following the Mongol invasion of the mid-13th century, the fortress was under command of the Eretnids, who minted coins in the town. A succession of petty Turkmen warlords controlled the town until Uzun Hasan of the Ak Koyunlu took over in 1459, perhaps believing that the place constituted part of the dowry of his new Greek wife, the daughter of John IV of Trebizond. Mehmed II took the town for the Ottomans from Ak Koyunlu in 1461, and consolidated his rule over the area in 1473 following his defeat of Uzun Hasan at the Battle of Otluk Beli. From Şebinkarahisar he sent a series of letters announcing his victory, including an unusual missive in the Uyghur language addressed to the Turkmen of Anatolia. A careful survey of the fortifications above the town has revealed that the Ottomans invested heavily in repairs to the original Late Antique-Byzantine-Seljuk walls and, in addition, constructed an impressive “citadel complex” at the summit. It became a sanjak centre as "Karahisar-I Şarki", initially in Rum Eyalet (1473-1514 and again 1520-1555), Bayburt Eyalet (1514-1516), Diyarbekir Eyalet (1516-1520), Erzurum Eyalet (1555-1805), Trabzon Eyalet (1805-1865) and Sivas Vilayet (1865-1923). According to the Ottoman General Census of 1881/82-1893, the kaza of Şebinkarahisar (Karahisar-i Şarki) had a total population of 35.051, consisting of 19.421 Muslims, 8.512 Greeks and 7.118 Armenians. The Shabin-Karahisar uprising Şebinkarahisar was one of the few locations where Armenians actively resisted the Armenian genocide. As news of deportations and massacres in other parts of the Ottoman Empire reached the town, its Armenian population decided to make preparations for self-defence. On June 15, 1915 some 300 Armenians, mostly wealthy merchants, were arrested. On the following day, after further attempted arrests, fighting erupted and barricades were erected in the town's Armenian districts. By June 18 most of those districts had fallen or been abandoned. Some 5,000 Armenians from the town and nearby villages, 75% of them women and children, retreated into Şebinkarahisar's medieval fortress. It was then surrounded by Turkish troops, who directed heavy artillery at its walls. On the night of July 11, with food, water, and ammunition almost exhausted, the Armenians decided to secretly evacuate the fortress. However, the attempt was discovered and all who had left were killed. On July 12 those still inside the fortress surrendered. A massacre then followed in which