Shah (ʃɑː; شاه, Šāh ʃɒːh, king) is a royal title that was historically used by the leading figures of Iranian monarchies. It was also used by a variety of Persianate societies, such as the Ottoman Empire, the Kazakh Khanate, the Khanate of Bukhara, the Emirate of Bukhara, the Mughal Empire, the Bengal Sultanate, historical Afghan dynasties, and among Gurkhas. Rather than regarding himself as simply a king of the concurrent dynasty (i.e. European-style monarchies), each Iranian ruler regarded himself as the Shahanshah (شاهنشاه, King of Kings) or Padishah (پادشاه, Master King) in the sense of a continuation of the original Persian Empire. The word descends from Old Persian xšāyaθiya "king", which used to be considered a borrowing from Median, as it was compared to Avestan xšaθra-, "power" and "command", corresponding to Sanskrit kṣatra- (same meaning), from which kṣatriya-, "warrior", is derived. Most recently, the form xšāyaθiya has been analyzed as a genuine, inherited Persian formation with the meaning 'pertaining to reigning, ruling'. This formation with the "origin" suffix -iya is derived from a deverbal abstract noun *xšāy-aθa- 'rule, ruling, Herrschaft, from the (Old Persian) verb xšāy- 'to rule, reign'. The full, Old Persian title of the Achaemenid rulers of the First Persian Empire was Xšāyaθiya Xšāyaθiyānām or (Middle Persian) Šâhân Šâh, "King of Kings" or "Emperor". This title has ancient Near Eastern or Mesopotamian precedents. The earliest attestation of such a title dates back to the Middle Assyrian period as šar šarrāni, in reference to the Assyrian ruler Tukulti-Ninurta I (1243–1207 BC). Šāh, or Šāhanšāh (King of Kings) to use the full-length term, was the title of the Persian emperors. It includes rulers of the first Persian Empire, the Achaemenid dynasty, who unified Persia in the sixth century BC, and created a vast intercontinental empire, as well as rulers of succeeding dynasties throughout history until the 20th century and the Imperial House of Pahlavi.