Ghiyath al-Din Muhammad I
Ghiyāth al-Dīn Muḥammad I (–1365) was the second Sultan of the Eretnids in central and eastern Anatolia, ruling from 1352 until his death. He was enthroned at a young age and struggled to maintain his authority over the state his father, Eretna, had founded. Although he was initially preferred over his older brother Jafar, Muḥammad was deposed by his emirs early into his reign and was replaced by Jafar. After some time in exile, he returned, restored his throne, and killed his brother. Though, throughout his reign, he dealt with rebellions, and lost land to local Turkoman lords, the Dulkadirids, and the Ottomans. After putting an end to his former vizier Khoja Ali Shah's revolt and returning to the capital, Kayseri, he was murdered by his emirs, who crowned his minor son Ali as the new sultan. Early life and background 
Muḥammad was born to Eretna and Isfahan Shah Khatun. His mother, Isfahan Shah Khatun, was a relative of the Jalayirid ruler Hasan Buzurg. His father, Eretna, was an officer of Uyghur origin initially in the service of Chupan and his son Tīmūrtāsh. He relocated in Anatolia following the Tīmūrtāsh's appointment as the Ilkhanid governor of the region and took part in his campaigns to subdue the Turkoman chiefs of the western periphery of the peninsula. This was cut short by Tīmūrtāsh's downfall, after which Eretna went into hiding. Upon the dissolution of the Ilkhanate, he aligned himself with Hasan Buzurg, who eventually left Anatolia for Eretna to govern when he returned east to clash with the rival Chobanids and other Mongol lords. Eretna later sought recognition from the Mamluk Egypt to consolidate his power, although he played a delicate game of alternating his allegiance between the Mamluks and the Mongols. In 1343, he declared independence as the sultan of his domains. His reign was largely described to be prosperous with his efforts to maintain order in his realm such that he was known as Köse Peyghamber (). Eretna died in 1352. Rise to the throne and first reign 
Muḥammad was studying in Konya when his father passed away. He was liked by most Eretnid emirs, and upon his father's death, Eretna's vizier Khoja Ali secretly invited Muḥammad to Kayseri to become the new sultan, although Muḥammad's older brother Jafar was already residing there. Jafar was imprisoned by Muḥammad for some time, but he eventually escaped to Egypt. Though, Muḥammad's rule did not fare well as he turned out to be debaucherous and treated his siblings unfairly. Since he was young, authority came into the hands of his emirs. Turkoman tribes took control of the region of Canik. The Dulkadirids to the south expanded their borders at the expense of the Eretnids. However, the Dulkadirid beg Zayn al-Dīn Qarāja soon sought protection in Muḥammad's court fleeing from the Mamluks, who were preparing to prosecute him for the rebellion he led. At the request of the Mamluks, Muḥammad deported Qarāja to Mamluk-controlled Aleppo, from where he would be transferred to Cairo for his execution. Nevertheless, Muḥammad was deposed by his emirs, and his half-brother Jafar reigned for a year. Second reign and death
After losing the throne to his half-brother, Muḥammad fled to Konya taking refuge in the Karamanids and later Sivas. The governor Ibn Kurd recognized him and assisted him in the restoration of his rule. In April 1355, he faced Jafar at the Battle of Yalnızgöz. He came to terms with the vizier Ali Khoja and killed Jafar, reclaiming his rule. In 1361, as a reprisal to a raid by Tatars of the Chavdar tribe, Ottoman Beg Murad I captured Ankara Castle from the Eretnids. Muḥammad allied himself with the Dulkadirids in September 1362 in a joint campaign to drive the Mamluks away from Malatya. Mamluk governor of Damascus, Yalbugha and his 24 thousand-strong force marched north and raided Eretnid and Dulkadirid lands. However, this was to no success in recovering the Mamluk control. In 1364, Khoja Ali Shah led an uprising against Muḥammad and marched towards Kayseri. Muḥammad was defeated and had to request assistance from the Mamluk Sultan Al-Kamil Sha'ban. Upon a decree by the Mamluk Sultan, the governor of Aleppo sent his forces to Muḥammad's help, with which he subdued and executed Khoja Ali Shah in 1365. Soon after, other emirs who wanted to preserve their autonomy, such as Hajji Shadgeldi and Hajji Ibrahim, killed Muḥammad in Kayseri before he could reinforce his authority, enthroning his son Ali. Around that time, the eastern part of the realm, including Erzincan, Erzurum, and Bayburt, had come into the rule of a local figure, Akhi Ayna. Muḥammad was about 25 years old on his death. Family
Eretna's son ʿAlāʾ al-Dīn ʿAlī succeeded him after his murder. According to Karamanname, Muḥammad also had an older son named Eretna. He was at some point declared as the ruler but was defeated and imprisoned by the Karamanids. While he could reclaim the throne for some time, he was eventually killed by ʿAlāʾ al-Dīn of Karaman. Muḥammad's son Eretna had two sons named Esenbogha and Ghazi, the first of which is reputed to have a tomb in Niğde. However, he is not mentioned by any other sources of that era. References

Bibliography
 
 
 
 

1365 deaths
Year of birth unknown
14th-century murdered monarchs
14th-century monarchs in Asia
Eretnids