Mehmet II of Karaman, Mehmed Beg (Turkish: Mehmet Bey), Mehmed Beg II, also known as Nasir al-Din Mehmed Beg ( ?- 1423) was the ruler (Turkish: bey) of Karaman in what is now modern Turkey in the 15th century. His mother was Nefise Hatun, a daughter of Sultan Murad I
Karamanid was a Turkmen state in central Anatolia after the disintegration of Seljuq Sultanate of Rûm. The capital of Karamanid state was usually Karaman (ancient Larende, renamed by the Karamanids) and sometimes Konya and other cities as well. It was the main rival of the rising Ottoman Empire. The opponents of the Ottoman Turks in Eastern Europe usually sought for alliances with Karamanid to catch Ottomans between two fires.
While Sultan Beyazıt I of the Ottoman Empire was in Rumeli in 1398, Mehmet's father Alaattin Ali raided Ankara, an important Ottoman city. Beyazıt returned to Anatolia, defeated and killed Mehmet's father. Then he laid a siege on Karaman. Mehmet and his brother Bengi Ali surrendered on the condition that the citizens of Karaman would not be punished. Beyazıt jailed both princes in Bursa, the co-capital of the Ottoman Empire. But four years later, he himself was defeated by Timur in the battle of Ankara and Bursa was captured by Timur's grandson who released Mehmet and his brother.
Following his release, Mehmet returned to Karaman as the bey of Karamanid state. In addition to his father's possessions, he was given a few forts by Timur and soon he began increasing his territory. During the interregnum caused by Timurlane's devastations, Mehmet began occupying Ottoman and Germiyanids (an ally of Ottomans ). In particular he captured Kütahya the capital of Germiyanids. (The bey of Germiyan was the father in law of the former Ottoman sultan Beyazit I)