In the 14th century several autonomous towns (
Amasya,
Tokat,
Sivas) were established, despite the continued
Seljukid-
Mongol rule in central
Asia Minor. When the
Ilkhanid ruler
Ebu Said died in 1335, administration of Asia Minor was entrusted to his former governor
Eretna Bey, a
Uyghur. Eretna Bey ultimately declared independence, seeking the protection of the
Mamluks, who were rivals of the Ilkhanids. He captured the area around Sivas-
Kayseri, eventually establishing an
emirate of Eretna, which grew stronger during the rule of his son,
Mehmed Bey. In 1381
Kadı Burhaneddin a
kadı in Kayseri who was also appointed vizier to represent the emirate of Eretna in that town, replaced the Eretnid as ruler of Sivas and also captured Amasya and Tokat. His principality managed to resist interference in central Anatolia from both the
Akkoyunlus and the Ottomans until it collapsed with his death in 1398. ==Administrative divisions==