# Shamkhalate of Tarki

The Shamkhalate of Tarki, or Tarki Shamkhalate (also Shawhalate, or Shevkalate; Kumyk: Таргъу Шавхаллыкъ, romanized: Tarğu Şawxallıq) was a Kumyk state in the eastern part of the North Caucasus, with its capital in the ancient town of Tarki. It formed on the territory populated by Kumyks and included territories corresponding to modern Dagestan and adjacent regions. After subjugation by the Russian Empire, the Shamkhalate's lands were split between the Empire's feudal domain with the same name extending from the river Sulak to the southern borders of Dagestan, between Kumyk possessions of the Russian Empire and other administrative units.
At some point the Shamkhalate had vassals from the Caspian Sea to Kabarda and Balkaria. The Shamkhals also possessed the title of the Vali of Dagestan and had their residence in the ancient Khazar-Kumyk mountainous shelter.
Annexation of the Tarki Shamkhalate and other territories of Dagestan by Russia was concluded by the Treaty of Gulistan in 1813. In 1867, the feudal domain of the Shamkhalate was abolished, and on its territory the Temir-Khan-Shura (now Buynaksk) district of Dagestan Oblast was established.
During the 1580–1590s, the Shamkhalate was officially a part of the Ottoman Empire. Since the 16th century, the state was a major figure of Russian politics to the southern borders, as it was the main target and obstacle in conquering the Caucasian region.

## Emergence of Shamkhalate
### Arab version

According to records from Arab sources, the Shamkhalate emerged in the year 734, when Arab conqueror Abu-Muslim appointed one of his generals named "Shakhbal" to rule over the "Kumuh region". This version is based upon "Derbend-name" source, which is by itself not known to have a certain author and has many anonymous undated versions. The most recent authored version is of the 16th century.

### Critics of the Arab version

V. Bartold also stated that the term "Shamkhal" is a later form of the original form "Shawkhal", which is mentioned both in the Russian and Persian (Nizam ad-Din Shami and Sheref ad-din Yezdi) sources. Dagestani historian Shikhsaidov wrote that the version claiming Arab descent was in favor of the dynasty and clerics (the descendants of the Prophet Muhammad). A. Kandaurov wrote that the Arab version was elaborated by the Shamkhals themselves. Also, the title Shamkhals is not mentioned in the works of the Medieval Arabic historians and geographers.

### Turkic-Kumyk version

Among the supporters of the Turkic version of the creation of the Shamkhalian state is Lak historian Ali Kayaev:
   Shamkhal wasn't a descendant of Abbas Hamza but a Turk, who came with his companions. After him the Shamkhalate became a hereditary state.
It was supported by Turkish historian Fahreddin Kirzioglu, the early 20th century historian D. H. Mamaev, Halim Gerey Sultan, Muhammed Efendi, and others. Dagestanian historian R. Magomedov stated that:
   there is all necessary proofs to relate the term to the Golden Horde, but not to the Arabs. We may think that in the period of the Mongol-Tatars they put a Kumyk ruler in that status [Shamkhal].
Russian professor of oriental studies, the Doctor of Historical Sciences I. Zaytsev, also shared the opinion that the Shamkhalate was a Kumyk state with the capital in the town of Kumuk (written thus in medieval sources). While studying works of the Timurid historians Nizam ad-Din Shami and Sheref ad-din Yezdi, Soviet historians V. Romaskevich and S. Volin, and Uzbek historian Ashraf Ahmedov, as well as professor in Alan studies O. Bubenok, call Gazi-Kumuk (also Gazi-Kumukluk in medieval sources) call the Shamkhalate area as the lands of Kumyks.
Ottoman traveller Evliya Çelebi called the Shamkhal "a natural Oghuz". One of the arguments of the Turkic version is that Shamkhals were elected in the way that is traditional for Turkic peoples — tossing a red apple. Ancient pre-Muslim names of the Kumuk [today Kumukh] inhabitants, as fixed in Khuduk inscription — Budulay, Ahsuwar, Chupan and others — are of Turkic origin. On the graves of the Shamkhals in Kumukh there are Turkic inscriptions, as noted by professor of Caucasian studies L. Lavrov. The grave itself was called by the locals "Semerdalian" after the Khazar city of Semender; the gravestones there are patterned in a Kipchak style. In the "Maza chronicle" Shamkhals are described as "a branch of the Khan-Hakhan generations". Nizam ad-Din Shami Yezdi in his 14th century Timurid chronicle The Book of Triumph and Sheref ad-din Yezdi mentioned the land as Gazi-Kumukluk, where the suffix "luk" is a Turkic linguistic sign. The ruler of Andi people Ali-Beg, who founded a new ruling dynasty, also had a title of "Shamkhal". According to the local story, starting from Ali-Beg until Khadjik, the rulers of their land spoke in the "language of the plains", i.e. Kumyk.
Jamalutdin-haji Mamaev in the beginning of the 20th century wrote:
   The fact that the ruler in Dagestan was chosen from the Chinghiz dynasty and called shawkhal-khan [sic], derived from the Turkic, Tatar spiritual tradition, as a reliance on their genealogical ancestry (nasab), not paying attention to the science or courtesies (edeb). The house of Chinghiz is highly esteemed amongst them (shawkhals), as Quraysh amongst Muslims. They didn't allow someone to stand higher than them or lift heads.
According to French historian Chantal Lemercier-Quelquejay, Shamkhalate was dominated by the Turkic Kumyks, and the Lak people hold the honorable title of Gazis (because of the earlier adoption of Islam). Apart from that, the Shamkhalate had a feudal class of Karachi-beks, a title exclusively related to Mongol-Turkic states.
Piano Karpini mentioned from his travels that Khazaria and Lak, even before falling in the hands of the "Western Tatars", belonged to the Cumans:
   The first King of the Western Tatars was Sain. He was strong and mighty. He conquered Russia, Comania, Alania, Lak, Mengiar, Gugia and Khazaria, and before his conquest, they all belonged to Comans.
Vasily Bartold also stated that the Arabic version is a compilation by local historians trying to merge legends with history.
The original population of the "Kazi-Kumykskiy" possession, as wrote F. Somonovich in 1796, were Dagestan Tatars (Kumyks). After the resettlement of some Lezginian peoples from Gilan province of Persia, under the rule of Shamkhal, the population mixed, and the power of Shamkhal decreased, and the new population formed their own Khanate independent of the Shamkhal dynasty:
   The people of this province come from Dagestan Tatars, mixed with the Persian settlers; they follow the same [religious] law, and speak [one of the] Lezginian languages.
and
   As some Persian sources say, this people settled here under the Abumuselim shah, from the Gilan Province and served under the cleric official kazi, under the rule of Shamkhal. Because of that cleric and the people of Kumukh place, who resettled here from Gilan, or, better said, by the mixture with the indigenous Kumukh people, who originate from Dagestan Tatars, the name Kazikumuk emerged. This clerics were the ancestors of Khamutay [contemporary Khan of Kazikumukh], who following the example of others claimed in their parts independence and in the present times adopted the Khan title.

## History
### 16th–17th centuries
#### Relations with Russia

In 1556 diplomatic relations with the Moscow state were set. The peaceful embassy of shamkhal brought Ivan the Terrible a number of rich gifts, one of which was extraordinary: an elephant, not seen up to that time in Moscow. Shamkhal's envoy to Russia had no success as in 1557 prince Temruk Idar of Kabardia asked Ivan the Terrible to help him against the raids of shevkalski tsar (shamkhal), Crimean khan and the Turks. Ivan the Terrible sent his general Cheremisov who took over Tarki but decided not to remain there.

#### Russian fortresses

In 1566 prince Matlov of Kabarda asked the Moscow tsar to put a fortress at the confluence of the Sunzha and Terek. For the construction of the fortress "came princes Andrew Babichev and Peter Protasiev with many people, guns and musket". In 1567 trying to prevent the Russians to build their stronghold at the mouth of the Sunzha, Budai-shamkhal and his son Surkhay were killed on the battlefield as evidenced by their tombstones at the cemetery of shamkhals in Gazi-Kumukh.
In 1569 prince Chopan, son of Budai-shamkhal, was elected shamkhal. Territory of Chopan-shamkhal in the north extended beyond Terek river and adjoined the Khanate of Astrakhan. In the west his territory included part of Chechnya up to Kabarda. In the south, territories of Chopan-shamkhal extended "up to Shemakha itself" according to I. Gerber.
In 1570 Chopan-shamkhal jointly with Turks and Crimeans undertook an expedition to capture Astrakhan. The city was not taken and the army retreated to Azov but then invaded Kabarda. Despite the demolition of the Sunzha fortress the Russian advance to the Caucasus by the end of the 1580s recommenced.
In 1588, the Russian authorities at the mouth of the Terek founded the fortress of Terki, also known as the Terek Fortress. Terki became the main stronghold of the Russian army in northern Dagestan.

#### Alliance with Iran

In Persia in the court of the shah, shamkhal had an honorable place next to the shah. Sister of Chopan-shamkhal was married to shah Tahmasp I (1514–1576). "First of all, in Persia at the time of the great festivities there were made on the right and left side of Shah's throne, the two seats on each side for the four noble defenders of the state against the four strongest powers, namely: for the khan of Kandahar, as a defender against India; for shamkhal, as a defender against Russia; for the king of Georgian, as a defender of the state against the Turks; for the khan who lives on the Arab border". According to A. Kayaev, the influence of Chopan-shamkhal in Caucasus was great so that he "intervened in the affairs of succession of Persion throne in Iran".

#### Alliance with Turkey

In 1577 Chopan-shamkhal jointly with his brother Tuchelav-Bek, Gazi-Salih of Tabasaran and in alliance with the Ottoman army undertook a military campaign against Qizilbashes who were defeated. After the victory over Qizilbashes in Shirvan, Chopan-shamkhal carried out a visit to Turkey and was met in Eastern Anatolia with honors. Chopan-shamkhal was given many gifts. For his services in the war with the Persians shamkhal was given sanjak Shaburan and his brother Tuchelav sanjaks Akhty and Ikhyr. Ibrahim Peçevi reported that the governor of Shirvan Osman Pasha (also of Kumyk descent) married a daughter Tuchelav, a niece of Shamkhal. Chopan Shamkhal pledged to defend Shirvan.
These relations led to the actual mutual agreement on the inclusion of Shamkhalate in the Ottoman Empire, while the Ottoman Sultan was already recognized as the caliph of all Muslims.

#### Internal feuds and disintegration

At the end of the 16th century shamkhal feuded with krym-shamkhal (which was the title of Shamkhalian successor to the throne) who was supported by part of the "Kumyk land".
King Alexander of Kakheti reported at the time that "shamkhal affair was bad as they (shamkhal and krym-shamkhal) scold among themselves". In 1588 the Georgian ambassadors Kaplan and Hursh reported that shamkhalate was in turmoil and asked the Russian tsar to send troops as a measure of military action against the raids of shamkhal on Georgia. Russians captured Tumen principality in the northern Dagestan. In 1599 Georgian ambassadors in Moscow, Saravan and Aram, reported to king Alexander of Kakheti that it was difficult to reach shamkhal as he chose to reside in the mountains at the time:
   "Neither you nor your men should be sent to fight shevkal (shamkhal), shevkal lives in the mountains, the road to him is narrow".
Georgian ambassador Cyril in 1603 reported in Moscow that "shevkal and his children live more in Gazi-Kumuk in the mountains, because that place is strong".
By the end of the 16th through the beginning of the 17th centuries Shamkhalat, which was a major political entity in Caucasus, disintegrated into separate Kumyk fiefdoms.

#### Defeating Russians

In 1594 a Khvorostinin's campaign into Dagestan took place, but his troops retreated. In 1604 a Buturlin's campaign into Dagestan took place. In 1605 Russian army that occupied lowlands of Kumykia (about 8,000 men) was surrounded and routed in the Battle of Karaman by the army of a Northern Kumyk prince Soltan-Mut of Endirey, some 20 kilometres north of Kumyk settlement of Anji, where today's Makhachkala is located.
At the end of the 1640s, Shamkhal Surkhay III invited a smaller part of Nogai Horde, headed by Choban-Murza Ishterek, who did not want to obey the tsarist governors, to live in Shamkhalate. For his return to Russian borders, tsarist troops were sent to Kumykia with their Kabardian allies and Cossacks. In 1651 the Battle of Germenchik took place, where joint Kumyk-Nogai army secured a victory. In 1651, the Shamkhal wrote to the Astrakhan governors about a custom that “we, Kumyks, have and cherish our konaks [quests and friends] since the times of our fathers”, thus explaining their alliance with the Nogais.

### 18th century, campaigns of Peter I and vassalage from Russia

During the Persian campaign of Peter I, Schamkhalate started as an ally of Russia, but in 1725, shamkhal Adil-Girey II, incited by the Ottoman Empire, attacked the Russian fortress of the Holy Cross, was defeated, captured and sent into exile to the north of Russia. Despite fierce resistance, described as such by Russian companions of Peter I, particularly from the Endirey and Utamysh principalities, Shamkhalat was defeated and on paper abolished. In 1734, after the Russian-Persian treaty, it was restored.
As a result of feudal civil strife and campaigns of Russian troops against Shamkhalat, at the beginning of the 18th century, only a small possession along the Caspian Sea (with a total area of up to 3 thousand km²) was all that remained from the state.

### 19th century, Caucasian War

During the Caucasian War, at least three uprisings broke out in Shamkhalate — in 1823, 1831 and 1843.

## Population

It was a multiethnic state. The main population was Kumyk. At various times, it included some areas populated by Dargins, and other peoples of the Caucasus.
According to Russian sources of the late 18th century, the Tarki Shamkhalate, together with their vassals Akusha Dargins, had from 36 to 42 thousand households, numbering 98-100 thousand people of both genders.

## List of known rulers

* Buday I, died in battle with the Russian army in Kabarda in 1566.
* Chopan-Shawkhal (1571–1588), actively participated in intra-Iranian internecine affairs, in the last years of his life he was an ally of the Ottoman Empire.
* Soltan-Mut of Tarki (circa 1560–1643) was a commander, under whom Northern Kumykia reached the peak of its power, for decades (late 16th – early 17th centuries) successfully repelling numerous attacks of neighbors, and defeating Russians at the Battle of Karaman.
* Adil-Gerey I (1609–1614), distinguished himself in the wars against Russia (especially in the battles near Boynak in 1594 and in the Karaman valley in 1605), adhered to the pro-Iranian political course.
* Surkhay III (1641–1667), pursued active foreign policy, won victories over Russian troops in the Battle of Germenchik and near Suyunch-Kala (Sunzha fortress) in 1651 and 1653 respectively.
* Budai II (1667–1692) distinguished himself in the wars with Iran and Russia (provided, in particular, active assistance to the Crimean Khans in their wars against Russia). He is also known for his patronage of the Old Believer Cossacks persecuted in Russia.