After having made peace with Hedayat-Allah Khan in 1767, Karim Khan confirmed the latter as the ruler of Gilan. The following year, Hedayat-Allah Khan launched an attack into Talish, where he defeated and captured Jamal al-Din, imprisoning him in Rasht. He then installed Jamal al-Din's son Mir-Askar Beg as the governor of Talish. In 1772, Jamal al-Din broke out of prison and went back to Talish. In 1784, the Talysh Khanate was attacked by Fath Ali Khan of Quba, the most dominant khan in the Caucasus. He made Jamal al-Din his vassal and also had him imprisoned in Baku. Due to pressure from Russia, however, Jamal al-Din was soon released. Language Talysh has three major dialects, Southern Talyshi (Masali, Masulei, Shandermani and others), Central Talyshi (Asalemi, Hashtpari and others) and Northern Talyshi (spoken in four closely linked dialect sections of Lerik, Masally, Lankaran, Astara in Azerbaijan Republic and in the dialects of Astara, Sayyadlar, Vizane, as well as Anbaran and neighbouring villages in Iran). A transitional stage of these dialects also exist, such as in Jow Kandan-e Bozorg, where a transition between Northern to Central Talyshi is spoken. Linguist Donald Stilo argues that Northern and Southern Talyshi should be regarded as individual languages in the same manner as the Kurdish languages, due to the low intelligibility between the two. Genetics With regards to their NRY-Y-DNA haplogroups, the Talysh show salient Near-Eastern affinities, with haplogroup J2, associated with the advent and diffusion of agriculture in the neolithic Near East, found in over 25% of the sample. Another patriline, haplogroup R1, is also seen to range from 1/4 to up to 1/2, while R1a1, a marker associated with Eastern Indo-European, which includes Indo-Iranian peoples of Central/South Eurasia, only reaches to under 5%, along with haplogroup G. Location Most Talysh in the Republic of Azerbaijan live in a region that stretches from the western bank of the Vilaj River in the north to the Iranian border in the south and from the Caspian Sea in the east to the Iranian border in the West. This region covers the five political districts of Astara, Lankəran, Lerik, Masallı, and Yardımlı. Within these five districts there are over 350 Talysh villages and towns. In recent years, Talysh have also settled in other parts of Azerbaijan. Pockets of Talysh can be found south of the Kura River in the Bilasuvar, Neftcala, and Calilabad districts. Large numbers of