Herat (1793–1863)

Principality of Herat
شاهزاده‌نشین هرات
1793–1863
Flag of Herat from 1818 until 1842 (left) and the flag of Herat in 1856 (right) when Mohammad Yusuf and 'Isa Khan declared Herat a vassal of Britain and hoisted the British flag
Map of Herat at its height in 1848
CapitalHerat
LanguagesPersian (primary), Pashto, Turkmen, Balochi
Ethnic groups
Pashtuns, Farsiwan, Qizilbash, Aimaq, Tajiks, Hazaras, Jews, Hindus, Baloch, Sistanis, Turkmen, Uzbeks, Armenians
Religion
Sunni Islam, Shia Islam with Judaism and Hinduism as a minority
Demonym(s)Herati
GovernmentUnitary absolute monarchy
Emir 
 1793–1797 (first)
Mahmud Shah Durrani
 1829–1842 (3rd)
Yar Muhammad Khan
 March–May 1863 (last)
Shah Navaz Khan
Establishment
History 
 Tributary to Iran
1804
 Independent state
1818
 Dependent on Iran
1856
 Established
1793
 Disestablished
1863
Preceded by
Succeeded by
Durrani Empire
Emirate of Afghanistan
Today part ofIran
Afghanistan
Turkmenistan

The Principality of Herat (Persian: شاهزاده‌نشین هرات), the Emirate of Herat (Persian: امارت هرات), the Herat Khanate (Persian: خان‌نشین هرات) or simply Herat (Persian: هرات) was a state in Afghanistan from 1793 to 1863, and one of the three main khanates that existed in 19th century Afghanistan (the others being the khanates of Kabul and Kandahar) after the breakup of the Durrani Empire.

In 1793, Timur Shah Durrani died and Mahmud Shah took control of Herat, making the town and the surrounding region independent. In 1801, the principality was revived by Firuz al-Din Mirza. Herat was prosperous under his reign in spite of multiple invasions by Qajar Iran. In 1818, Mahmud and later Kamran Shah took over, attempting to keep the region stable as a buffer region between the Barakzais and Qajars. However, the region was devastated by constant infighting and further Iranian invasions.

The Iranian invasion of 1837 weakened the principality, eventually allowing Yar Mohammad Khan Alakozai to overthrow Kamran, the last ruler in 1842, and expand the principality's borders towards the Chahar Wilayat, Aimaq territory, and Lash-Joveyn. With his death in 1851 the principality began to decline due to a series of incompetent rulers as well as a civil war and an Iranian invasion in 1856.

The weakening of the principality allowed the Barakzai State to intervene and besiege Herat. Ultimately they were able to capture the city on May 27, 1863, ending Herat's existence as an independent state.