Herat (Persian: هَرات, romanized: Harāt), or Emirate of Herat (Persian: امیرنشین هَرات, romanized: Amir nešine Harāt, or Principality of Herat (Persian: شاهزادهنشین هَرات, romanized: Šāhzāde nešine Harāt), or Herat Khanate (Persian: خاننشین هَرات, romanized: Xān nešine Harāt) 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.