in the Khanate took place during the Russo-Persian Wars. According to the treaties concluded between these states, all of Asalem, Karganrud and Vilkij districts and some parts of the Ujarud, Safidasht, Astara and Zuvand districts were given to Qajar Iran. The administration institutions of the Khanate was not that big. Management was generally given to begs and devout landlords. The begs always worked in the whole of the Khanate and the Khan's saray. The closest assistant to the Khan was the Chief Vizier. Apart from this, the sarkar-i ali was responsible in the financial affairs, and the eshik-aqasi was responsible in the business affairs. Taxes were collected by lieutenants (), Kadkhodās (village chief) and Yuzbashis. The sandouqdar-aqası (Treasurer) supervised their affairs. At the head of the districts were the lieutenants and the begs. They were to deal with taxes, organize local finance affairs, and solve minor problems. The landlords were responsible to the lieutenants and were led by the begs. They were chosen by the rural community and were confirmed by the Khan. None of them was inherited, but if the Khan agreed, it could be hereditary. Cities were run by tax officials and castellans (). They had to protect the city from external influences and maintain internal security. Cities were divided into separate neighbourhoods. The defence of borders and strategic locations were given to landlords whose estates were in the frontier and on trade routes. History According to Mirza Ahmad Mirza oglu Khudaverdi, the founder of the Talysh Khanate, Seyyid Abbas, his ancestors were members of the Safavid dynasty, who had moved into the Talish region during the 1720s during a turbulent period in Iranian history. When Seyyid Abbas died in 1747 he was succeeded by his son Jamaladdin, often remembered as Gara Khan (the 'Black King'), because of his dark skin. Because of his good service to Nader Shah, Nader officially awarded him the hereditary title of khan. Gara Khan was pro-Russian in his foreign policy which upset the rulers of neighbouring khanates notably Hidayat Khan of Gilan. In 1768 Hidayat Khan attacked the Talysh khanate. Seeking aid against the superior enemy, Gara Khan sent his brother Karbalayi Sultan to Fath Ali Khan, ruler of the Quba Khanate resulting in an alliance between Quba and Lankaran. By 1785 the territory of the Talysh khanate had formally become a dependency of that much stronger Quba Khanate together with certain