In 1768, Javad khan Taleh Hasan khan voluntarily accepted the dependence of the Quba khanate. However, khan power was kept in Javad. This event, along with the enlargement of the territory of the Quba Khanate, also influenced the dynamics of its population. Historical sources point out that the Javad Khanate's voluntary association to the Quba khanate has a positive effect on the quantity and quality of the khanate population. The Mughan population was able to live in a stable political environment in the 60s and 80s of the eighteenth century. The Javad Khanate's history is short, and it is not selected with any attention, but it is impossible to deny its existence in the khanates system in the eighteenth century. In order to determine the historical scene of Javad Khanate, very limited, distorted and distorted information was kept in the history books and archives. The sources of the Javad Khanate's population history are quite limited and episodic. Nevertheless, it is possible to try to define the share of the population of the Javad Khanate in the political union of the North-East Azerbaijan on the basis of historical materials. In the 16th century, Javad was a half-independent khanate in the middle of the XVIII century. It was the town of Javad, which is located in the center of the Kur and Araz rivers. Javad Khanate was bordered by Shamakhi khanate from north, Lankaran khanate from south, Salyan ruler from east, and from Karabakh to Karabakh khanate. The Khanate of the Mugan Plain was a part of the Javad Khanate, a permanent winter belt of the shahsevans and other Turkish tribes. It is worth mentioning that the Javad khanate, sometimes referred to as the Mughan Khanate in the sources.
Military-political situation of Javad khanate
One of the historic events that had a substantial influence on the demographic situation of Mughan Plain and Javad city was due to the Hidayat Khan's attack on this region in 1778. Historical literature shows that the khan of the Javad Khanate, which was peacefully connected to the Quba Khanate, soon became one of the closest men of Fatali Khan. The khan of Javad was one of the most trusted men of Fatali Khan and participated in his secret meetings. The merging of Mughan, both military and strategic, meant further strengthening of the Guba khanate. Fatali Khan rivals could not adopt a policy of diplomatic maneuvering among the great powers. The combination of Fatali Khan and the Mughan plains and Javad khanate in their lands did not correspond to the interests of a number of the khanates. The fact that the majority of Mughan plain, under the control of Fatali Khan, was a traditional winter grazing area of the population of the above-mentioned khanates, as well as the transfer of a part of Ardebil and Mughan people to the Guba khanate did not correspond to the interests of Gilan, Ardabil, Garadagh and other khanates.A number of south Khanates, formerly engaged in diplomatic experimentation against the Quba khanate, started a clear military intervention shortly after the defeat of Fatali Khan in 1774 in Gavdushan. Hidayat Khan of Gilan was particularly interested in this work. He united with former Aghasi Khan of Shirvan and Garagaytag. The troops of the Hidayat Khan went to Javad, the center of Javad Khanate, after robbing of Lankaran and Salyan in 1778. In April 1778, after the firing of Javad city seven times using gun the people was deeply panic. Hasan Khan felt his failure to stand up against his powerful opponents. And taking his brother and son, khan of Gilan went to the camp of Hidayat Khan. According to some information, 900 people were relocated from the city. According to another historical source, 7500 people were relocated from the city. They were driven to Rasht and Anzali for heavy land work, tower construction and agricultural work. This incident had a negative impact on the historical demographics of the Javad Khanate. The city of Javad was destroyed and did not return to its former situation. In 1781, Hasan Khan's troops united with the khans of Quba, khan of Derbent, khan of Baku, khan of Shirvan, khan of Shaki, khan of Karabakh, khan of Lankaran and khan of Ardabil) against Agha Mohammad Khan Qajar, the Iranian throne candidate. In 1783, Hasan Khan attacked Karabakh as part of the 13,000-strong army of Fatali Khan. Fatali Khan attacked Ardabil and Meshkin in May 1784. The emirates of Shahsevan followed him. Hasan Khan was appointed ruler of Ardabil.