The Qarlughids were a tribe of Turkic origin that controlled Ghazni, lands of the Bamyan, the Kurram Valley (Ghazna, Banban, and Kurraman), and established a short-lived Muslim principality and dynasty that lasted between 1236 and 1266. The Qarlughids (or Karluk Turks) arrived from the north to settle in the regions of Hazarajat together with the armies of Muhammad II of Khwarezm, the Shah of Khwarezm. Throughout most of its existence, the Qarlugh Kingdom functioned as a buffer state between its two powerful neighbors, the Delhi Sultanate to the east and south and the Mongol Empire to the north and west. With the Malik on the throne, the Qarlugh would frequently switch allegiances between their two powerful neighbors and through balanced diplomacy managed to become an important trade intermediary between the Mongols of Central Asia and the lands of the subcontinent. One testament to Qarlughid prosperity is the significant coinage found from this dynasty. File:Qarlughids. Sind. Saif al-Din al-Hasan 1239-1249 In the name of the Abbasid Caliph, al-Zahir struck 1225-1226.jpg|Coinage of Saif al-Din al-Hasan (1239-1249), ruler of the Qarlughids. Sind mint. In the name of the Abbasid Caliph, [[al-Zahir]]. Struck in 1225-1226 CE. File:Qarlughids. Nasir al-Din Muhammad Qarlugh. AH 647-658 AD 1249-1259. Æ Jital (16mm, 3.38 g). Brockage strike. Incuse of reverse śri maha mada ka raluka in three lines.jpg|Coinage of [[Nasir al-Din Muhammad Qarlugh]] (1249-1259) in the Indian [[Sarada script]]: ''śri maha /mada ka/ raluka''.