Afsharid Iran (ایران افشاری), also referred as the Afsharid Empire, was an Iranian empire established by the Turkoman Afshar tribe in Iran's north-eastern province of Khorasan, ruling Iran (Persia). The state was ruled by the Afsharid dynasty in the mid-eighteenth century. The dynasty was founded in 1736 by the brilliant military commander Nader Shah, who deposed the last member of the Safavid dynasty and proclaimed himself as the Shah of Iran. During Nader's reign, Iran reached its greatest extent since the Sasanian Empire. At its height it controlled modern-day Iran, Armenia, Georgia, Republic of Azerbaijan, Afghanistan, Bahrain, Turkmenistan, and Uzbekistan, and parts of Iraq, Pakistan, Turkey, United Arab Emirates, Oman and the North Caucasus (Dagestan). After his death, most of his empire was divided between the Zands, Durranis, Georgians, and the Caucasian khanates, while Afsharid rule was confined to a small local state in Khorasan. Finally, the Afsharid dynasty was overthrown by Agha Mohammad Khan Qajar in 1796, who would establish a new native Iranian empire and restore Iranian suzerainty over several of the aforementioned regions. The dynasty was named after the Turkoman Afshar tribe from Khorasan in north-east Iran, to which Nader belonged. The Afshars had originally migrated from Turkestan to Azerbaijan (Iranian Azerbaijan) in the 13th century. In the early 17th century, Abbas the Great moved many Afshars from Azerbaijan to Khorasan to defend the north-eastern borders of his state against the Uzbeks, after which the Afshars settled in those regions. Nader belonged to the Qereqlu branch of the Afshars. Restoration of Tahmasp II to the Safavid throneTreaty of ReshtTreaty of Ganja and Ottoman–Persian War (1730–1735) Nader Shah was born (as Nadr Qoli) into a humble semi-nomadic family from the Afshar tribe of Khorasan, where he became a local warlord. His path to power began when the Ghilzai Mir Mahmud Hotaki overthrew the weakened and disintegrated Safavid shah Sultan Husayn in 1722.