Hossein Khan Sardar
Hossein Qoli Khan Qajar Sardar Iravani () was an Iranian statesman and commander in Qajar Iran, who was the last khan (governor) of the Erivan Khanate from 1807 to 1828. A member of the Qajar tribe and a close relative of the royal Qajar dynasty, Hossein Qoli was the son of Mohammad Khan Qajar of Erivan, who governed the Erivan Khanate from 1784 to 1805. Hossein Qoli is first mentioned in 1795, as an official and member of the household of his close friend, the crown prince Baba Khan (later known by his regnal name of Fath-Ali Shah Qajar) in the city of Shiraz. Following the death of the Qajar shah (king) of Iran, Agha Mohammad Khan Qajar () in 1779, Hossein Qoli played a key-role in helping Baba Khan securing the throne, thus being granted numerous rewards, such as tuyuls (land grants) and marriage into the royal family. Hossein Qoli served as a guardian of the northern passageways to Tehran from Qazvin until 1802, when he was appointed governor of the eastern province of Khorasan, which he brought stability to over the course of five years. In 1807, he was sent to the Caucasus to participate in the war with Russia. He was soon afterwards appointed the governor of the Erivan Khanate, where he was given free rein due to Fath-Ali Shah's confidence in him. The war ended with the Treaty of Golestan in 1813, in which the Iranians agreed to cede all of their Caucasian territory with the exception of Erivan and Nakhichevan. In 1826, another war between Iran and Russia erupted, which concluded in 1828 with another Iranian defeat. By agreeing to the Treaty of Turkmenchay, Iran also lost Erivan and Nakhichevan. Hossein Qoli, in contrast to the other khans in the Caucasus, avoided making a deal with the Russians and was able to hinder their plans for twenty years. Article XII of the Treaty of Turkmenchay, which specifically denied him and his brother the ability to sell or trade their property in Erivan—a right guaranteed to everyone else—was a clear indication of Russia's irritation. Hossein Qoli died in 1831 at the age of ninety. Iranian accounts state that he was respected by Fath-Ali Shah and died in good health. But according to Armenian and Western accounts, he died in an impoverished and depressed state in a stable. Background 
Hossein Qoli belonged to the Qovanlu branch of the Turkic Qajar tribe and was a close relative of the royal Qajar dynasty of Iran. His father was Mohammad Khan Qajar of Erivan, who governed the Erivan Khanate from 1784 to 1805. Hossein Qoli was born in , but his place of birth is unknown. It may have been in the city of Qazvin due to his (infrequent) use of the title of "Qazvini". However, his title is most likely related to his later victory against Sadeq Khan Shaqaqi near Qazvin and his later post there. During this period, Iran was ruled by shah (king) Nader Shah () of the Afsharid dynasty. Career

Consolidating the rule of the crown prince 
Except for being held as a hostage in the center of Iran, there is no documented history of his youth. The first mention of him is in 1795, as a member of the household of his close friend, the crown prince Baba Khan (later known by his regnal name of Fath-Ali Shah Qajar) in the city of Shiraz. There he was an official who served as the yuzbashi ("head of the household slaves"). The assassination of Agha Mohammad Khan in Shusha in 1797 gave rise to a number of pretenders to the throne, Sadeq Khan Shaqaqi being the most significant. With the support of the Turkmens in the north, he marched towards the Iranian capital of Tehran. However, Baba Khan, being escorted by Hossein Qoli, arrived in Tehran first. After having assembled an army there, he appointed Hossein Qoli as its leader, and also gave him the title of khan. Hossein Qoli subsequently helped Baba Khan become shah by defeating Sadeq Khan Shaqaqi in the battle of Qazvin. During the same year, Hossein Qoli suppressed a Zand rebellion caused by Muhammad Khan in the city of Isfahan. Following that, he defeated Nader Shah's grandson Nader Mirza, who was attempting to restore the power of the Afshars in the Khorasan province. By 1800, all the rivals of Fath-Ali Shah had been defeated by Hossein Qoli, and thus the position of the dynasty was safe. The traveller von Freygang, when describing Hossein Qoli, stated that "the khan by his boldness had raised the reigning Shah to the throne" and that "he enjoyed his master's full confidence". Fath-Ali Shah rewarded Hossein Qoli's commitment by not only giving him multiple tuyuls (land grants) but also by marrying his sister, giving his 29th daughter in marriage to Hossein Qoli's son Mohammadqoli, and asking one of Hossein Qoli's daughters to be the wife of his son and heir apparent, Abbas Mirza. Hossein Qoli served as a guardian of the northern passageways to Tehran from Qazvin until 1802. During that year, Khorasan saw factional conflict once more, with small Afshar clans notably opposing the king. To put an end to the uprising, Fath-Ali Shah named Hossein Qoli as the province's governor. By putting the leaders in jail and blinding some of them under Fath Ali Shah's decree, Hossein Qoli was able to bring about stability over the course of five years. Hossein Qoli's status and popularity grew along with his income. He used a portion of that income to build mosques, caravansaries, and baths in the regions under his rule. He soon became one of the richest men in Iran as a result of his fortune. Some of his family members received promotions as well, such as his brother Hasan, who received his former office of yuzbashi. Assignment to the Caucasus 
Within a short period of time, the Russian expansion replaced internal conflicts as the main threat to the throne. War had erupted between Iran and Russia in 1804, when the Russians seized the city of Ganja, which had been governed by the Ganja Khanate of Iran. Hossein Qoli was given a commission by Fath-Ali Shah in 1807 to defend the Caucasus from Russian encroachment and was given the title of sardar (commander-in-chief). Fath-Ali Shah had been powerless to stop the Russian progress in the Caucasus and had considered the khans in the Caucasus to be unreliable. In order to help the khan of Karabakh, Ibrahim Khalil Khan, who was under siege by a Russian army led by General Ivan Gudovich, Hossein Qoli rushed to the place. Being too late, Hossein Qoli instead marched towards Shirvan, where he attempted to thwart the attempt of its khan Mostafa Khan to cooperate with the Russians. He was unable to accomplish his goal there due to the presence of powerful Russian forces, and he was forced to flee towards Erivan. Governorship of Erivan

First war with Russia 

It would be greatly difficult for the Russians to proceed into northern Iran if the Iranians were able to hold the region of Erivan, an important invasion route. Fath-Ali Shah appointed Hossein Qoli as its governor in the same year as a result of a number of Iranian defeats. He thought Hossein Qoli would be able to stop the Russian advance and build on his previous victories. Despite being well recognized for its formidable walls, Erivan's stronghold was additionally fortified and supplied to survive a protracted siege. In 1808, Hossein Qoli was joined by his brother Hasan as support against the approaching Russian invasion by Gudovich, which the brothers successfully repelled. Following their defeat, the Russians took some time before attempting another significant operation outside of Georgia. Gudovich, being cautious, refused to agree to yet another plan devised by his inexperienced officers. With the exception of Hosein Qoli's sporadic raids, all sides held their positions, a deadlock developed. In 1809, Britain and Iran made an alliance, with the British guaranteeing that until all Russian forces had left Iranian territory or peace was made, they would supply Iran with a 200,000 toman annual stipend as well as a sizeable amount of military hardware. Britain wanted to maintain Iran politically and economically stable so that India could use it as a stronghold of defense. Later, the defenses of Erivan was strengthened by British engineers and military experts, who also helped build the fortress of Sardarabad near Erivan, and Abbasabad in the Nakhichevan Khanate. As the focal point of offensive and defensive operations against Russian forces in the Southern Caucasus, the Erivan Khanate grew in importance. A strong Iranian stronghold was established in the area as a result of this and the nearby presence of the main Iranian army at Tabriz. Additionally, Russian resources were diverted to other fronts by the Russo-Turkish War of 1806–1812, the French invasion of Russia, and the repeated clashes with Muslim tribes in Daghestan. As a result, the Erivan Khanate was not under immediate danger from Russia for almost twenty years. In response to the assistance offered by Sherif Pasha of Akhaltsikhe, Hossein Qoli was in August 1810 sent there as the head of a 7,000-man army with orders to assault Georgia via Shuregol. He had recruited members of the Karapapakh tribe while en route, increasing the size of his army to 10,000. He traveled to Akhalkalaki at the end of August, where he encountered the Georgian prince Alexander, who told him that the Georgians were prepared to make an uprising against Russia and were only awaiting the presence of the Iranian army. However, Hossein Qoli did not believe him, and thus waited for Sherif Pasha to arrive with his 17,000 soldiers. Hosein Qoli Khan told Abbas Mirza that he would go back to Erivan if Sherif Pasha did not appear before the weather would get cold. The Russian general Alexander Tormasov resolved to attack Hossein Qoli as soon as he realized Sherif Pasha had not mobilized his forces. The Russians unexpectedly attacked the Iranian camp on September 17 about three in the morning. The Iranians were taken by surprise and either fell into the fort's surrounding trench or ran into each other. Hossein Qoli and Prince Alexander left in their nightshirts amid the ensuing mayhem. After a three-hour fight, two khans and 700 men had been killed, whilst Esmail Khan and eleven begs were taken hostage. Many tents, horses, and other pieces of equipment were also taken by the Russians, while many horses were seized by the escaping Karapapakh tribesmen. In 1812, the Russians made peace with the Ottoman Empire, and with the withdrawal of French forces, men that were urgently required on the Caucasian front could be transferred. By 1813, the Russian armies were once more on the offensive and had won several battles. The British were now fighting alongside Russia against France, and thus stopped helping Iran, instead advising them to make peace with Russia. Fath-Ali Shah and Abbas Mirza were pressed to reach an agreement with Russia by the British diplomat Gore Ouseley, who in return promised to assist Iran diplomatically in regaining some of its lost territory beyond the Aras River in addition to continuing the subsidies and the arms supply. If the Iranians refused, he cautioned them that Britain would no longer help Iran in the future. Lacking other opinions, Iran agreed to make peace with Russia, signing the Treaty of Golestan in 1813, in which the Russians received the Iranian lands of Baku, Ganja, Shakki, Quba, Shirvan, Karabakh, and parts of Talish. Moreover, Iran also had to abandon its claims over Georgia. Second war with Russia 

Between July 28 and 30, the Russian army fought an intense battle against Hossein Qoli, who conquered Pambak and Shuregol in northern Erivan. Meanwhile, his brother Hasan made attacks further north, forcing the Russians to withdraw to Tiflis. Between August 1 and 3, Bash Aparan was recovered by Hossein Qoli, who then started fighting the Russians at Gyumri. Hossein Qoli, in contrast to the other khans in the Caucasus, avoided making a deal with the Russians and was able to hinder their plans for twenty years. Article XII of the Treaty of Turkmenchay, which specifically denied him and his brother the ability to sell or trade their property in Erivan—a right guaranteed to everyone else—was a clear indication of Russia's irritation. Hossein Qoli died in 1831 at the age of ninety. Iranian accounts state that he was respected by Fath-Ali Shah and died in good health. But according to Armenian and Western accounts, he died in an impoverished and depressed state in a stable. Administration 
Other than Erivan, there is almost no information on Hossein Qoli's methods of rule. During his governorship of Erivan, he oversaw both the civil administration and military of the province. To counter his ambitious heirs, notably Abbas Mirza, Fath-Ali Shah used Hossein Qoli as a balancing influence. Fath-Ali Shah was aware that Hossein Qoli was loyal to him and would not leave him for any proposal from the princes. Hossein Qoli, who was posted to the north of Abbas Mirza's domains, was thus given free rein by him. Hossein Qoli's authority was powerful enough to prevent the usual outbreak of violence between the settled and nomadic groups. Turkmen were typically chosen for the infantry, and Kurds for the cavalry. Nearly half of the province's inhabitants were nomads. These nomads received special rights (such as reduced taxes, privileges, pasture liberties, grants of land, and salaries) in exchange for staying clear of the villages and restraining their members from bothering the settled population. These nomads were given their own territories, which were managed by their clan leaders. Throughout his twenty-year reign, Hossein Qoli made an effort to gain the support of the populace, particularly the Armenians. At the Etchmiadzin Cathedral outside of Erivan, Catholicos Daniel—the legitimate head of the Armenian Church—was restored after Catholicos David seized his position. Hossein Qoli maintained a friendly relationship with Melik Sahak Aqamal, the secular leader of the Armenians in the Erivan khanate, and played a key-role in arranging the marriage of Isaac's daughter with Alexander. Legacy and assessment 
Hossein Qoli is regarded by visitors as one of the richest and most powerful chiefs in Iran, having equal authority to Abbas Mirza. According to the modern historian Muriel Aktin, "even the Russians respected him as a soldier." One of the few notable Iranian nobles who was exempt from the requirement to depart Tehran with court prisoners was Hossein Qoli. 