User:Thecatcherintherye/Sandbox

Azerbaijan is a country in the Caucasus region of Eurasia. It is bounded by Caspian Sea to the east, Russia's Daghestan region to the north, Georgia to the north-west, Armenia and Turkey to the south-west, and Iran to the south. Azerbaijan is a home to various ethnicities, majority of which are Azerbaijani, a Turkic ethnic group which numbers close to 10 million in the independent Republic of Azerbaijan.

During Median and Persian rule, many Caucasian Albanians adopted Zoroastrianism and then switched to Christianity prior to coming of Muslim Arabs and more importantly Muslim Turks. The Turkic tribes are believed to have arrived as small bands of ghazis whose conquests led to the Turkification of the population as largely native Caucasian and Iranian tribes adopted the Turkic language of the Oghuz and converted to Islam over a period of several hundred years.

Following the Russo-Persian Wars of 1813 and 1828, the Qajar Empire was forced to cede all its Caucasian territories to the Russian Empire and the treaties of Gulistan in 1813 and Turkmenchay in 1828 finalized the borders between Czarist Russia and Qajar Iran. The area to the North of the river Aras, among which the territory of the contemporary republic of Azerbaijan were Iranian territory until they were occupied by Russia in the course of the 19th century. Under the Treaty of Turkmenchay, Qajar Iran recognized Russian sovereignty over the Erivan Khanate, the Nakhchivan Khanate and the remainder of the Lankaran Khanate, comprising the last parts of the soil of the modern-day Azerbaijani Republic that were still in Iranian hands.

After more than 80 years of being under the Russian Empire in the Caucasus, the Azerbaijan Democratic Republic was established in 1918. The name of "Azerbaijan" which the leading Musavat party adopted, for political reasons, was, prior to the establishment of the Azerbaijan Democratic Republic in 1918, exclusively used to identify the adjacent region of contemporary northwestern Iran. The state was invaded by Soviet forces in 1920 and remained under Soviet rule until the collapse of the Soviet Union in 1991, after which the modern-day Republic was founded.

Prehistory
The prehistoric period in Azerbaijan includes the Stone Age, the Bronze Age and the Iron Age.

Stone Age
The Stone Age is divided into the Paleolithic, Mesolithic, and Neolithic periods.

Paleolithic
The Paleolithic period is divided into three periods: The Lower Paleolithic, The Middle Paleolithic, and The Upper Paleolithic period.The Paleolithic period originated from the first human species’ habitation in this territory and lasted until the 12th millennium BCE.

The cave of Azykh in the territory of the Fizuli district in the Republic of Azerbaijan is considered to be the site of one of the most ancient proto-human habitations in Eurasia. Remnants of the pre-Acheulean culture were found in the lowest layers of the Azykh cave that are at least 700,000 years old. In 1968, Mammadali Huseynov discovered a 300,000-year-old partial jawbone of an early human in the acheulean age layer in Azokh cave, this was the oldest human remains ever discovered in the Soviet Union.

The Lower Paleolithic period is also known as the “Guruchay culture” and has similar features  with the “Olduvay culture”.

The Paleolithic period in what is now Azerbaijan is represented by finds at Aveidag, Tağlar, Damjily, Zar, Yatagery, Dash Salakhly, Qazma and some other sites.

Mesolithic
Approximately, 12.000 years ago the Stone age period was replaced by the Mesolithic period and lasted until the 8.000 BC. The Mesolithic period in Azerbaijan was mainly studied on the basis of Gobustan (near Baku) and Damjili (Qazakh) caves.

Carved drawings etched on rocks in Gobustan, south of Baku, demonstrate scenes of hunting, fishing, labor and dancing, and are dated to the Mesolithic period. Petroglyphs in Gobustan dating about 5,000 to 8,000 years back contain long ships similar to Viking ships. Uncovered ship illustrations among the rock paintings shows its connection with the European continent and the Mediterranean.

Neolithic
The Neolithic period in Azerbaijan covers VII-VI millennium BC. Neolithic period was mainly studied on the basis of material and cultural examples were found in Damjili cave (in Qazakh), Gobustan (in Baku), Shomutepe (in the Agstafa District), Kultepe (in Nakhchivan), Toyretepe and other settlements. For the first time agricultural revolution happened in this period.

Eneolithic
The Eneolithic or Chalcolithic period (c. 6th – 4th millennium BCE) was the period of transition from the Stone Age to the Bronze Age. Being laid around the Caucasus mountains which are rich in copper ores, there was a favorable condition for early formation and development of copper processing in the areas of Azerbaijan. Many Eneolithic settlements as in Shomutepe, Toyratepe, Jinnitepe, Kultepe, Alikomektepe and IIanlitepe have been discovered in Azerbaijan, and carbon-dated artifacts show that during this period, people built homes, made copper tools and arrowheads, and were familiar with no-irrigated agriculture.

Bronze to Iron Ages
The Bronze Age began in the second half of the 4th millennium BC and ended in the second half of the 2nd millennium BC in Azerbaijan, while the Iron Age commenced in approximately 7-6th centuries BC. The Bronze Age in Azerbaijan is divided into the early Bronze Age, the middle Bronze Age and the late Bronze Age. These periods were studied in Nakhchivan, Ganja, Mingachevir, Dashkasan and other settlements.

The Early Bronze Age is characterized by the Kur-Araxes culture, the Middle Bronze Age also known as “painted earthenware”, or “painted pottery” culture. Late Bronze Age is characterized by archeological cultures of Khojali-Gadabay, Nakhchivan and Talish-Mughan.

During the researches in 1890 was conducted by Jacques de Morgan in the mountainous areas of Talysh near Lankaran, more than 230 burials were revealed back to Late Bronze and Early Iron Ages. E. Rösler uncovered the late Bronze Age materials from Karabakh and Ganja between 1894 and 1903. J. Hummel conducted investigations in 1930-1941 in Goygol region (Elenendorf in Soviet times) and Karabakh and revealed important sites as Barrows I and II, as well as several unknown sites dated back to the late Bronze Age.

Archaeologist Walter Crist from the American Museum of Natural History found a Bronze Age board game (4000 year - old) named “Hounds and Jackals” or “58 holes” in Gobustan National Park in 2018. The game was popular in Egypt, Mesopotamia and Anatolia at that time and was identified in the tomb of the ancient Egyptian pharaoh Amenemhat IV.

The influence of ancient peoples and civilizations came to a crossroads in the territory of Azerbaijan. A variety of Caucasian peoples appear to be the earliest inhabitants of the South Caucasus with the notable Caucasian Albanians being their most prominently known representative.

Caucasian Albanians are believed to be the earliest inhabitants of Azerbaijan. Early invaders included the Scythians in the 9th century BCE. The South Caucasus was eventually conquered by the Achaemenids around 550 BCE. During this period, Zoroastrianism spread in Azerbaijan. The Achaemenids in turn were defeated by Alexander the Great in 330 BCE. Following the decline of the Seleucids in Persia in 247 BCE, an Armenian Kingdom exercised control over parts of modern Azerbaijan between 190 BCE to 428 CE. This Armenian Kingdom, the Arsacid dynasty of Armenia, was a branch of the eponymous Arsacid dynasty of Parthia. All of Caucasian Albania fell, after the deposing of the Seleucids, under Parthian rule for the next centuries to come. Caucasian Albanians established a kingdom in the 1st century BCE and largely remained independent, though as a vassal state, until the Parthians were deposed Sassanids, and made Caucasian Albani a province in 252 CE. Caucasian Albania's ruler, King Urnayr, officially adopted Christianity as the state religion in the 4th century CE, and Albania would remain a Christian state until the 8th century. While fully subordinate to Sassanid Persia, Caucasian Albania retained its monarchy. Sassanid control ended with their defeat by Muslim Arabs in 642 CE, as the whole empire, including all of Azerbaijan would be conquered through the Muslim conquest of Persia.

The successive migration and settlement of Eurasian and Central Asian nomads continued to be a familiar pattern in the history of the Caucasus since ancient times, from the era of Sassanid-Persian empire to emergence of Azerbaijani Turks by the 20th century. Among the Iranian nomads who made incursion into and from Azerbaijan are the Scythians, Alans and Cimmerians. Nomads such as Khazars and Huns made incursions during the Hunnic and Khazar era. The walls and fortification of Darband were built during the Sassanid era in order to block nomads coming from beyond the North Caucasus pass. However, they did not make permanent settlements.

Achaemenid and Seleucid rule
Following the overthrow of the Median Empire, all of what is today Azerbaijan was invaded by the Persian king Cyrus the Great in the 6th century BCE. This earliest Persian Empire had a profound impact upon local population as the religion of Zoroastrianism became ascendant as did various early Persian cultural influences. Many of the local peoples of Caucasian Albania came to be known as fire worshippers[citation needed], which may be a sign of their Zoroastrian faith.

This empire lasted over 250 years and was conquered later by Alexander the Great and led to the rise of Hellenistic culture throughout the former Persian Empire. The Seleucid Greeks inherited the Caucasus following Alexander's death in 323 BCE, but were ultimately beset by pressures from Rome, secessionist Greeks in Bactria, and most adversely the Parthians (Parni), another nomadic Iranian tribe from Central Asia, which made serious inroads into the northern eastern Seleucid domains from the late 4th century BCE to the 3rd century BCE and this ultimately allowed local Caucasian tribes to establish an independent kingdom for the first time since the Median invasion.

Caucasian Albania, the Parthians, and the Sassanian conquest


The Albanian kingdom coalesced around a native Caucasian identity to forge a unique state in a region of vast empire-states. However, in the 2nd or 1st century BCE the Armenians considerably curtailed the Albanian territories to the south and conquered the territories of Karabakh and Utik, populated by various Albanian tribes, such as Utians, Gargarians and Caspians. During this time the border between Albania and Armenia was along the river of Kura.

As the region became an arena of wars when Romans and Parthians began to expand their domains, most of Albania came, very briefly, under the domination of Roman legions under Pompey and the south being controlled by the Parthians. A rock carving of what is believed to be the eastern-most Roman inscription survives just south-west of Baku at the site of Gobustan. It is inscribed by Legio XII Fulminata at the time of emperor Domitian. Caucasian Albania subsequently came fully under Parthian rule.

After the division of Armenia between Byzantium and Persia in 387 CE the Albanian kings regained control over the provinces of Uti and Artsakh (lying south of the Kur), when Sasanian kings rewarded Albanian Arsacid rulers for their royalty to Persia.

Medieval Armenian historians, such as Movses Khorenatsi and Movses Kaghankatvatsi, write that Albanians converted to Christianity in the 4th century CE by the efforts of Gregory the Illuminator of Armenia. Albanian king Urnayr accepted Christianity and was baptised by Gregory the Illuminator. Urnayr also declared Christianity as his kingdom's official religion. However Christianity spread in Albania only gradually, and a large part of Albanians and Persians remained Zoroastrian until the Islamic conquest.

Islamic conquest


Muslim Arabs defeated the Sassanids and Byzantines as they marched into the Caucasus region. The Arabs made Caucasian Albania a vassal state after the Christian resistance, led by Prince Javanshir, surrendered in 667. Between the 9th and 10th centuries, Arab authors began to refer to the region between the Kura and Aras rivers as Arran. During this time, Arabs from Basra and Kufa came to Azerbaijan and seized lands that the indigenous peoples had abandoned.

Seljuqs and successor states
The Seljuq period of Azerbaijan's history was possibly even more pivotal than the Arab conquest as it helped shape the ethno-linguistic nationality of the modern Azerbaijani Turks.

After the decline of the Abbasid Caliphate, the territory of Azerbaijan was under the sway of numerous dynasties such as the Iranian Salarids, Sajids, Shaddadids, and Buyids. However at the beginning of the 11th century, the territory was gradually seized by waves of Oghuz Turkic tribes emanating from Central Asia. The first of these Turkic dynasties was the Ghaznavids from northern Afghanistan, who took over part of Azerbaijan by 1030. They were followed by the Seljuqs, a western branch of the Oghuz who conquered all of Iran and the Caucasus and pressed on to Iraq where they overthrew the Buyids in Baghdad in 1055.

The Seljuqs became the main rulers of a vast empire that included all of Iran and Azerbaijan until the end of the 12th century. During the Seljuq period, the influential vizier of the Seljuq sultans, Nizam ul-Mulk (a noted Persian scholar and administrator) is noted for having helped introduce numerous educational and bureaucratic reforms. His death in 1092 marked the beginning of the decline of the once well-organized Seljuq state that further deteriorated following the death of Sultan Ahmad Sanjar in 1153.

Locally, Seljuq possessions were ruled by Atabegs, who were technically vassals of the Seljuq sultans, but sometimes became de facto rulers themselves. The title of Atabeg was common during the Seljuq rule of the Middle East starting in the 12th century. Under their rule from the end of 12th to early 13th centuries, Azerbaijan emerged as an important cultural centre of the Turkic people. Palaces of the Atabeg Eldegizids (eldeniz) and the Shirvanshahs hosted distinguished people of the time, many of whom were outstanding Muslim artisans and scientists. The most famous of the Atabeg rulers was Shams al-din Eldeqiz (Eldeniz).

Under the Seljuqs, great progress was achieved in different sciences and philosophy by Iranians like Bahmanyar, Khatib Tabrizi, Shahab al-Din Suhrawardi and others. Persian poets such as Nizami Ganjavi and Khaqani Shirvani, who lived in this region, epitomise the highest point in refined medieval Persian literature. In addition, the region experience a building boom and the unique of architecture of the Seljuq period is epitomized by the fortress walls, mosques, schools, mausoleums, and bridges of Baku, Ganja and Absheron which were built during the 12th century.

In 1225, Jalaleddin Kharazmshah of Khwarezmid Empire put an end to the Atabeg rule.

Mongols and Ilkhanid rule
The Mongol invasion of the Middle East and Caucasus was a devastating event for Azerbaijan and most of its neighbors. From 1220, Begin beg began to pay tributes to the Mongols. Jebe and Subotai made the small state neutral. In 1231, the Mongols occupied most of Azerbaijan and killed the Khorezmshah Jalaladdin, who had overthrown the Atabeg dynasty. In 1235 the Mongols destroyed cities of Ganja, Shamkir, Tovuz, Shabran on their way to conquer Kievan Russia. By the 1236, all of Transcaucasia was in the hands of Ogedei khan.

The end of Mongol rule and the Kara Koyunlu-Agh Koyunlu rivalry


Tamerlane (Amir Timur) launched a devastating invasion of Azerbaijan in the 1380s, and temporarily incorporated Azerbaijan into his vast domain that spanned much of Eurasia. The Shirvanshah state under Shirvanshah Ibrahim I were also vassals of Timur and assisted Timur in his war with the Mongol ruler Tokhtamysh of the Golden Horde. Azerbaijan experienced social unrest and religious strife during this period due to sectarian conflict initiated by Hurufi, Bektashi and other movements.

Following Timur's death in 1405, his fourth son Shah-Rukh came to power and reigned until 1446. To the west of Shah-Rukh's domain two new rival Turkic states emerged – the Kara Koyunlu based around Lake Van and the Ak Koyunlu (or White Sheep Turks) centred around Diyarbakır. Initially, it was the Kara Koyunlu who were ascendant when their chief Kara Yusuf overcame Sultan Ahmad, the last of Jalayirids, and conquered lands south of Azerbaijan in 1410, establishing his capital at Tabriz. Under Jahan-Shah, the Kara Koyunlu expanded their territory into central Iran and as far east as Khurasan. Later, however, the Ak Koyunlu came into greater prominence under Uzun Hasan, overcoming Jahan-Shah and the Qara Qoyunlu in 1468. Uzun Hasan ruled all of Iran, Azerbaijan and Iraq until his death in 1478. Both Ak Koyunlu and Kara Koyunlu, continued the Timurid tradition of generous patrons of literature, poetry and the arts as the renowned Islamic miniature paintings of Tabriz illustrate.

The Shirvanshahs


Shīrwān Shāh or Sharwān Shāh, was the title in mediaeval Islamic times of a Persianized dynasty of Arabic origin.

The role of the Shirvanshah state was important in the national development of Azerbaijan. The Shirvanshahs maintained a high degree of autonomy as local rulers and vassals from 861 until 1539, and provided a continuity that lasted longer than any other dynasty in the Islamic world. There are two periods of an independent Shirvan state: first in the 12th century, under Sultans Manuchehr and Axsitan who built the stronghold of Baku, and second in the 15th century under the Derbendid dynasty. Between the 13th and 14th centuries, the Shirvanshahs were vassals of the Mongol and Timurid empires.

The Shirvanshahs Khalilullah I and Farrukh Yassar presided over a highly stable period in the history of the dynasty. The architectural complex of the "Shirvanshah palace" in Baku (that was also a burial site of the dynasty) and the Halwatiyya Sufi Khaneqa were built during the reign of these two rulers in the mid-15th century. The Shirvanshah rulers were more or less Orthodox Sunni, and thus opposed the heterodox Shi'a Islam of the Safavid Sufi order. In 1462 Shaykh Junayd, the leader of Safavids was killed in battle against Shirvanishans, near the town of Gusar (he was buried in the village Hazra) – an event that shaped subsequent Safavid actions leading to a new phase in the history of Azerbaijan.

Safavids and the rise of Shi'a Islam


The Safavid (Safaviyeh) were a Sufi religious order centred in Iran and formed in the 1330s by Sheikh Safi Al-Din (1252–1334), after whom it was eponymously named.

This Sufi order openly converted to the heterodox branch of twelver Shi'a Islam by the end of the 15th century. Some Safavid followers, most notably the Qizilbash, believed in the mystical and esoteric nature of their rulers and their relationship to the house of Ali, and thus, were zealously predisposed to fight for them. The Safavid rulers claimed to be descended from Ali himself and his wife Fatimah, daughter of Muhammad, through the seventh Imam Musa al-Kazim. Qizilbash numbers increased by the 16th century and their generals were able to wage a successful war against the Ak Koyunlu state and capture Tabriz.

The Safavids, led by Ismail I, expanded their base in Ardabil, conquering the Caucasus, parts of Anatolia, Mesopotamia, Central Asia, and western parts of South Asia. During the same period, Ismail sacked Baku in 1501 and persecuted the Sunni Shirvanshahs. The territory of nowadays Azerbaijan was conquered by the Iranian Safavids, alongside Armenia and Dagestan, between 1500 and 1502.

During the reign of Ismail I and his son Tahmasp, Shi'a Islam was imposed upon the formerly Sunni population of Iran and Azerbaijan. Imposition of Shi'a Islam was especially harsh in Shirvan, where a large Sunni population was massacred. Safavid Iran became a feudal theocracy during this period and the Shah was held to be the divinely ordained head of state and religion. During this period, the Qizilbashi chiefs were designated wakils (or legal administrators) with offices in charge of provincial administration and the class of Shia Islamic Ulema was created.

The wars with the Sunni Ottoman Empire, the archrivals of the Safavids, continued during the reign of Shah Tahmasp. The important Safavid cities of Shamakha, Ganja and Baku were occupied by Ottomans in the 1580s.

Under the reign of Shah Abbas I the Great (1587–1630) the monarchy peaked and took on a distinctly Persian national identity that merged with Shi'a Islam. Abbas I's reign represented the high point of development of the state and he was able to repel the Ottomans and re-capture the entire Caucasus, including what is now Azerbaijan and Shirvan in 1603. Being aware of the interfering power of the Qizilbash, he continued the same policy as his predecessors namely fully integrated the Caucasus and its elements into Persian society. To fulfil this, he deported hundreds of thousands of Circassians, Georgians and Armenians to Iran, who rose to high and low ranks in the army, royal house, and civil administration, effectively killing the feudal Qizilbash as these converted Caucasians (often called ghulams) had full allegiance to the Shah, and not their tribal chiefs unlike the Qizilbash. Their descendants continue to linger forth in Iran, such as along the Iranian Armenians, Iranian Georgians and the Iranian Circassians.

The religious impact of the Safavids was furthermore huge on both contemporary Iran and Azerbaijan, as the population of Azerbaijan was forcibly converted to Shiism in the early 16th century at the same time as the people of what is nowadays Iran, when the Safavids held sway over it. And the territory of modern-day Azerbaijan therefore contains the second largest population of Shia Muslims by percentage right after Iran, and the two are the only nations where the population is by utter majority, nominally, Shia Muslim.

Khanates of 18th and early 19th centuries and Iran's forced cession to Russia
While civil conflicts took hold in Iran, most of Azerbaijan was shortly occupied by the Ottomans (1722 to 1736). Meanwhile, (from 1722 until 1735), during the reign of Peter the Great, the coastal strip along the Caspian Sea comprising Derbent, Baku and Salyan, came shortly under Imperial Russian rule through the Russo-Persian War (1722-1723).

After the collapse of the Safavid empire, Nadir Shah Afshar, an Iranian military genius of Turcoman origin came into power. He wrested control over Iran, banished the Afghans for good in 1729, and proceeded to go on an ambitious military spree, conquering as far as east as Delhi, and having the dream of founding another great Persian Empire. Not fortifying his Persian base severely exhausted his army. Nadir had effective control over Shah Tahmasp II and then ruled as the Regent of the infant Abbas III, until 1736, when he had himself crowned as Shah. The coronation of Nadir Shah took place in Mughan, in the present territory of Azerbaijan. Nader was a military genius, conquering in a short amount of time a new native Iranian empire encompassing a territory it had not seen since the time of the Sassanids. He conquered all of the Caucasus, Mesopotamia, parts of Anatolia, large parts of Central Asia, and crushed the Mughals in the Battle of Karnal, having free entrance to their capital Delhi, which he completely sacked and looted, bringing huge wealth with him back to Persia. His empire however was quite short lived, but nevertheless he is considered the last great ruler of Asia.

After Nadir Shah's assassination in 1747, the Persian Empire under the Afsharids disintegrated. Several Muslim khanates with various forms of autonomy emerged in the area. The former eunuch Agha Muhammad Khan of the Qajars could now turn to the restoration of the outlying provinces of the Safavid and Afsharid kingdom. Returning to Tehran in the spring of 1795, he assembled a force of some 60,000 cavalry and infantry and in Shawwal Dhul-Qa'da/May, set off for Azarbaijan, intending to reconquer all lost territories to the Ottomans and Russians, including the country between the rivers Aras and Kura, formerly under Iranian Safavid/Afsharid control. This region comprised a number of independent khanates of which the most important was Qarabagh, with its capital at Shusha; Ganja, with its capital of the same name; Shirvan across the Kura, with its capital at Shamakhi; and to the north-west, on both banks of the Kura, Christian Georgia (Gurjistan), with its capital at Tiflis, while remaining under nominal Persian suzerainty. The khanates engaged in constant warfare between themselves and with external threats. The most powerful among the northern khans was Fat'h Ali Khan of Quba (died 1783), who managed to unite most of the neighbouring khanates under his rule and even mounted an expedition to take Tabriz, fighting with Zand dynasty. Another powerful khanate was that of Karabakh, which subdued neighbouring Nakhchivan khanate and parts of Erivan khanate.

Agha Mohammad Khan emerged victorious out of the civil war that commenced with the death of the last Zand king. His reign is noted for the re-emergence of a centrally led and united Iran. After the death of Nader Shah and the last of the Zands, most of Iran's Caucasian territories had broken away and formed various Caucasian khanates. Agha Mohammad Khan, like the Safavid kings and Nader Shah before him, viewed the region as no different than the territories in Iran proper. Therefore, his first objective after having secured Iran was to reincorporate the Caucasus region into Iran. Georgia was seen as one of the most integral territories. For Agha Mohammad Khan, the re-subjugation and reintegration of Georgia into the Iranian Empire was part of the same process that had brought Shiraz, Isfahan, and Tabriz under his rule. As the Cambridge History of Iran states, its permanent secession was inconceivable and had to be resisted in the same way as one would resist an attempt at the separation of Fars or Gilan. It was therefore natural for Agha Mohammad Khan to do whatever was necessary in the Caucasus to subdue and reincorporate the recently lost regions following Nader Shah's death and the demise of the Zands, including putting down what in Iranian eyes was seen as treason on the part of the wali of Georgia, namely the Georgian king Erekle II (Heraclius II) who was appointed viceroy (wali) of Georgia by Nader Shah himself.

Agha Mohammad Khan subsequently demanded that Heraclius II renounce the treaty with Russia which had been signed several years earlier. This treaty had formally denounced any dependence on Persia and had agreed to full Russian protection and assistance in its affairs. Agha Mohammad Khan demanded that Heraclius II accept Persian suzerainty once more, in return for peace and the security of his kingdom. The Ottomans, Iran's neighbouring rival, recognized the latter's rights over Kartli and Kakheti for the first time in four centuries. Heraclius appealed then protector under the treaty, Empress Catherine II of Russia, seeking the support of at least 3,000 Russian troops, but he got no response, leaving Georgia to fend off the Persian threat alone. Nevertheless, Heraclius II still rejected the Khan's ultimatum. In response, Agha Mohammad Khan invaded the Caucasus region after crossing the Aras River, and, while on his way to Georgia, he re-subjugated the territories of the Erivan Khanate, Shirvan, Nakhchivan Khanate, Derbent Khanate, Talysh Khanate, Shaki Khanate, Karabakh Khanate, which comprise modern-day Armenia, Azerbaijan, and Dagestan, and Igdir. Having reached Georgia with his large army, the Battle of Krtsanisi took place, which resulted in the capture and sack of Tbilisi, as well as the effective re-subjugation of Georgia into Iran. Upon his return from his successful campaign in Tbilisi and in effective control over Georgia, together with some 15,000–20,000 Georgian captives who were taken back to Iran, Agha Mohammad was formally crowned Shah in 1796 on the Mughan Plain, just like his predecessor Nader Shah had been about sixty years earlier.

Agha Mohammad Shah was later assassinated while preparing a second expedition against Georgia in 1797 in Shusha (nowadays part of the Republic of Azerbaijan) and King Heraclius died early in 1798. Iranian hegemony over Georgia did not last long. In 1799 the Russians marched into Tbilisi. The Russians were already actively occupied with an expansionary policy towards its neighbouring empires to its south, namely the Ottoman Empire and the successive Iranian kingdoms since the late 17th/early 18th century. The next two years following Russia's entrance into Tbilisi were a time of confusion. The weakened and devastated Georgian kingdom, with its capital half in ruins, was easily absorbed by Russia in 1801. As Iran could not permit or allow the cession of Transcaucasia and Dagestan, which had formed part of the concept of Iran for centuries, it would also become the direct cause of the wars that took place several years later, namely the Russo-Persian War (1804-1813) and the Russo-Persian War (1826-1828), which would eventually lead to the irrevocable forced cession and loss of what is nowadays Georgia, Dagestan, Armenia, and Azerbaijan to Imperial Russia through the treaties of Gulistan of 1813 and Turkmenchay of 1828, as the ancient ties could only be severed by a superior force from outside. The Russo-Persian War (1804–1813) led to significant losses of life and property in Dagestan and the South Caucasus which disrupted trade and agriculture. The region however was mostly spared during the War of 1826–1828, as most of the fighting took place in Iranian territory. As a consequence of the wars, long standing ties between Iran and the region were severed during the course of the 19th century as Russia incorporated territory in the region.

According to Professor Tadeusz Swietochowski: The brief and successful Russian campaign of 1812 was concluded with the Treaty of Gulistan, which was signed on October 12 of the following year. The treaty provided for the incorporation into the Russian Empire of vast tracts of Iranian territory, including Daghestan, Georgia with the Sheragel province, Imeretia, Guria, Mingrelia, and Abkhazia, as well as the khanates of Karabagh, Ganja, Sheki, Shirvan, Derbent, Kuba, Baku, and Talysh.

According to Svante Cornell: In 1812 Russia ended a war with Turkey and went on the offensive against Iran. This led to the treaty of Gulistan in 1813, which gave Russia control over large territories that hitherto had been at least nominally Iranian, and moreover a say in Iranian succession politics. The whole of Daghestan and Georgia, including Mingrelia and Abkhazia were formally ceded to Russia, as well as eight Khanates in modern day Azerbaijan (Karabakh, Ganja, Sheki, Kuba, Shirvan, Talysh, Baku, and Derbent). However as we have seen the Persians soon challenged Russia 's rule in the area, resulting in a military disaster. Iran lost control over the whole of Azerbaijan, and with the Turkemenchai settlement of 1828 Russia threatened to establish its control over Azerbaijan unless Iran paid a war indemnity. The British helped the Iranians with the matter, but the fact remained that Russian troops had marched as far as south of Tabriz. Although certain areas (including Tabriz) were returned to Iran, Russia was in fact at the peak of its territorial expansion.

According to the Cambridge History of Iran: Even when rulers on the plateau lacked the means to effect suzerainty beyond the Aras, the neighboring Khanates were still regarded as Iranian dependencies. Naturally, it was those Khanates located closest to the province of Āzarbāījān which most frequently experienced attempts to re-impose Iranian suzerainty: the Khanates of Erivan, Nakhchivān and Qarābāgh across the Aras, and the cis-Aras Khanate of Ṭālish, with its administrative headquarters located at Lankarān and therefore very vulnerable to pressure, either from the direction of Tabrīz or Rasht. Beyond the Khanate of Qarābāgh, the Khān of Ganja and the Vāli of Gurjistān (ruler of the Kartli-Kakheti kingdom of south-east Georgia), although less accessible for purposes of coercion, were also regarded as the Shah's vassals, as were the Khāns of Shakki and Shīrvān, north of the Kura river. The contacts between Iran and the Khanates of Bākū and Qubba, however, were more tenuous and consisted mainly of maritime commercial links with Anzalī and Rasht.

The effectiveness of these somewhat haphazard assertions of suzerainty depended on the ability of a particular Shah to make his will felt, and the determination of the local khans to evade obligations they regarded as onerous.



Transition from Iranian rule to Russian rule


Russo-Perisan Wars; and Treaties of Gulistan (1813) and Turkmenchai (1828)

Audrey L. Altstadt argues that Russian military actions towards Caucasus were already on since 1790, but the first war Russo-Persian War was 1804. (1804–13) The commander-in-chief appointed by Russia was infamous Pavel Tsitsianov, called  ishpokdor  meaning "his work is dirt", or "shedder of blood" by Iranian chronicler Muriel Atkin. Tsitsianov's main destructions took place in the historical city of Ganja now in Azerbaijan, including the change of city's name to Elizavetpol. He has functioned from 1803 to 1806, until his assassination in Baku.

Following their defeat by Russia, Qajar Iran was forced to sign the Treaty of Gulistan in 1813, which acknowledged the loss of Dagestan, Georgia and most of Azerbaijan territory to Russia. Local khanates were either abolished (like in Baku or Ganja) or accepted Russian patronage. The end of Russo-Persian war in 1813 was marked with the Treaty of Gulistan.

Another Russo-Persian war in 1826–28 resulted in another defeat for the Iranian army. The Russians dictated another infamous final settlement as per the Treaty of Turkmenchay, which resulted in the Qajars of Persia ceding their last remaining Caucasian territories in 1828, comprising the last parts of the modern day Azerbaijani republic that were still in the latter's hands (Nakhchivan, Lankaran Khanate) as well as modern-day Armenia (Erivan Khanate). Besides these changes in administration and sovereignty of khanates, the treaty of Turkmenchai had articles concerning the tariffs, especially of lowering the tariffs for the possibility of flow of Russian goods; and on legal concessions such that grants Russia the right to keep a navy in the Caspian Sea. These articles also delineated the framework of Russian and Iran relations till 1917.

The treaty established the current borders of Azerbaijan and Iran as the rule of local khans ended. Thus, the modern-day Republic of Azerbaijan were to be eventually created out of the integral territories of Iran that were taken by Russia in the course of the 19th century, and was directly the result of it. In the newly Russian-controlled territories, two provinces were established that later constituted the bulk of the modern Republic – Elisavetpol (Ganja) province in the west, and Shamakha province in the east. The area to the North of the river Aras, among which the territory of the contemporary republic of Azerbaijan were Iranian territory until they were occupied by Russia in the course of the 19th century. As a direct result of Imperial Russia's annexations of Iranian territory in the Caucasus, which included the modern-day Azerbaijan republic, the Azerbaijani people are nowadays split between Azerbaijan and Iran. Following Russia's conquest sparked a large exodus of Caucasian Muslims towards the newly established borders of Iran, which included many Azerbaijanis from north of the Aras River.

Administration after 1828

From the time of the Russian Russian conquests through to the 1840s, Azerbaijan was governed by the Tsar's military forces. Russia reorganized the region's khanates into new provinces, each presided over by an army officer. The officers governed through a combination of local and Russian law. However, due to the officers general unfamiliarity with local customs, Russian imperial law was increasingly applied, this led to discontent among the local populace. Russian administration was not equal towards non-Christian Azerbaijanis, and the religious authorities were kept under control and this created disturbance among non-Christian citizens. The Azerbaijani Turks were affected by Russian restrictions against non-Christians.The Russian state made concerted efforts to control the application of Islamic law in the empire. Two Ecclesiastical Boards were created to oversee all religious Islamic activity. The state appointed a mufti for the Sunni board and a sheikh al-Islam for the Shia. In 1857 Georgian and Armenian religious authorities were given oversight in censoring their respective communities, however, Muslim religious works and books had to be approved by a censorship board in Odessa. Additionally Azerbaijani Turks were subject to intense Russian proselytization.

In the late 1830s plans were made to replace the military rule by officers with a civil administration. When the new legal system came into effect in January 1841, Transcaucasia was divided into a Georgian-Imeretian province, and a Caspian oblast centered in Shemakhi. New administrative borders were later drawn that ignored historical borders or ethnic composition. By the end of military rule in Azerbaijan, Russian imperial law achieved hegemony in all criminal and most civil matters. The jurisdiction of traditional religious courts and qadis were reduced to family law. The Russian state made concerted efforts to control the application of Islamic law in the empire. As a result of a catastrophic earthquake in 1859, the capital of the eastern province was transferred from Shamakhi to Baku which attained greater importance over time.

Baku After the treaty of Gulistan in 1813, Baku was fully integrated into Russian Empire. The years after the Russian conquest, Azerbaijan saw significant economic development, especially in the city of Baku after the second half of the 19th century. The separate currencies of the former khanates were replaced by the ruble and the tariffs between them were abolished. These reforms encouraged further investment in the region. Russia started investing joint-stock companies in the region and by the 1840s the steamships first sailed on the Caspian. The port of Baku saw an increase from an average of 400,000 rubles of trade in the 1830s to an average of 500,000 in the 1840s and between 700,000–900,000 rubles in the wake of the Crimean War.

Though oil was discovered and exported from the area centuries prior, the Azeri oil rush of the 1870s led to a period of unprecedented prosperity and growth in the years leading to World War I but also created huge disparities in wealth between the largely European capitalists and the local Muslim work force. Starting in the 1870s Baku experienced an era of rapid industrial growth as a result of an oil boom. Azerbaijan's first oil refinery was established near Baku in 1859, and the region's first kerosene plant was erected in 1863. Wells built in 1870s sparked the boom. Oil bearing lands were soon auctioned off to bidders. This system secured investors’ property and encouraged further investment in their holdings’ operations. Most of the people to acquire oil lands were elite Russians and Armenians, by contrast of 51 plots sold at the first auction only 5 were bought by Azerbaijani Turks. Additionally of 54 oil extraction firms in Baku in 1888, only 2 notable companies were owned by Azerbaijanis. Azerbaijani Turks participated in greater numbers among small-scale extraction and refining operations. 73 of 162 oil refineries were Azerbaijani owned, but all but 7 of them were employed less than 15 people. In the decades following the oil rush and foreign investment other industries grew in Azerbaijan.The banking system was one of the first to react to the oil industry In 1880 an offshoot of the state bank opened in Baku, in the first year of operation it issued 438,000 rubles, in 1899 all Baku banking institutions had issued 11.4 million rubles in all interest bearing securities. Transportation and shipping industries also grew as a result of the expanding oil market. The number of vessels on the Caspian quadrupled between 1887 and 1899. The Transcaucasian Railway, completed in 1884, connected Baku on the Caspian coast to Batum on the Black Sea coast via Ganja (Elizavetpol) and Tiflis. In addition to transporting oil, the railroad served to develop new relationships between rural agricultural areas and industrial zones. The connectivity of the region was further increased by the implementation of new communication infrastructure, with telegraph lines connecting Baku to Tiflis via Ganja (Elizavetpol) in the 1860s, and a telephone system operating within Baku in the 1880s.

The rush was spurred by Armenian oil magnate Mirzoev and his drilling practices, which were then replaced by the auction of oil lands, most of which were purchased by Russians and Armenians, followed by Europeans, most notably Robert Nobel of Branobel. By 1900, the population of Baku increased from 10,000 to roughly 250,000 people as a result of worker migration from all over the Russian Empire, Iran, and other places. The growth of Baku and the progression of an exploitative economy resulted in the emergence of an Azeri nationalist intelligentsia that was educated and influenced by European and Ottoman ideas. Influential thinkers like Hasan bey Zardabi, Mirza Fatali Akhundov and later, Jalil Mammadguluzadeh, Mirza Alakbar Sabir, Nariman Narimanov and others spurred a nationalist discourse and rallied against poverty, ignorance, extremism and sought reforms in education and the emancipation of the dispossessed classes, including women. The financial support of philanthropist millionaires such as Haji Zeynalabdin Taghiyev also bolstered the rise of an Azeri middle-class.

Following the disastrous Russo-Japanese war, an economic and political crisis erupted in Baku, starting with a general strike of oil workers in 1904. In 1905, class and ethnic tensions resulted in Muslim-Armenian ethnic rioting during the first Russian Revolution. The Tsarist governments had, in fact, exploited ethnic and religious strife to maintain control in a policy of divide and rule.

The situation improved during 1906–1914, when a limited parliamentary system was introduced in Russia and Muslim MPs from Azerbaijan were actively promoting Azeri interests. In 1911, the pan-Turkist and pan-Islamist Musavat Party,     inspired by the left of centre modernizing ideology espoused by Mammed Amin Rasulzade, was formed. Founded clandestinely, the party expanded rapidly in 1917, after the overthrow of the Tsarist regime in Russia. The most essential components of the Musavat ideology were secularism, nationalism, and federalism, or autonomy within a broader political structure. However, the party's right- and left-wings differed on certain issues, most notably land distribution. The leader of the party was the left-leaning Mammed Amin Rasulzade.

After Russia became involved in World War I, social and economic tensions spiked again. The Russian Revolution of 1917 ultimately led to the granting of rights to the local population of the territory that nowadays constitutes Azerbaijan and the granting of self-rule, but this autonomy also led to renewed ethnic conflict between ethnic Azeris and Armenians.

Azerbaijan Democratic Republic


At the collapse of the Russian Empire in 1917, the Transcaucasian Republic was founded with the leading Armenian and Georgian intelligentsia. After a short span of time, the republic was dissolved, and the Azerbaijan Democratic Republic was proclaimed on 28 May 1918 by the leading Azeri Musavat party. The name of "Azerbaijan", which the leading Musavat party adopted, for political reasons, was prior to the establishment of the Azerbaijan Democratic Republic in 1918 exclusively used to identify the adjacent region of contemporary northwestern Iran.

This was the first Democratic Republic established in Islamic World. In Baku, however, a coalition of Bolsheviks, Dashnaks and Mensheviks fought against a Turkish-Islamic army led by Nuru Pasha. This coalition known as the "Baku Commune" also inspired or tacitly condoned the massacres of local Muslims by well-armed Dashnak-Armenian forces. This coalition, however, collapsed and was replaced by a British-controlled government known as Central Caspian Dictatorship in July 1918. As a result of battles in August–September, on September 15, 1918 the joint forces of the Azerbaijan Democratic Republic and Ottoman Empire led by Nuru Pasha entered Baku and declared the city as a capital of young Azerbaijani state. This event has always been considered one of the most honorable pages of the Azerbaijani history.

Azerbaijan was proclaimed a secular republic and its first parliament opened on December 5, 1918. British administration initially did not recognize the Republic but tacitly cooperated with it. By mid-1919 the situation in Azerbaijan had more or less stabilized, and British forces left in August 1919. However, by early 1920, advancing Bolshevik forces, victorious in Russian Civil War, started to pose a great threat to young republic, which also engaged in a conflict with Armenia over the Karabakh.

Azerbaijan received de facto recognition by the Allies as an independent nation in January 1920 at the Versailles Paris Peace Conference. The republic was governed by five cabinets, all formed by a coalition of the Musavat and other parties including the Socialist Bloc, the Independents, the Liberals, the Social-Democratic Party Hummat (or Endeavor) Party and the Conservative Ittihad (Union) Party. The premier in the first three cabinets was Fatali Khan Khoyski; in the last two, Nasib Yusifbeyli. The president of the parliament, Alimardan Topchubashev, was recognized as the head of state. In this capacity he represented Azerbaijan at the Versailles Paris Peace Conference in 1919.

Aided by Azeri dissidents in the Republican government, the Red Army invaded Azerbaijan on April 28, 1920. The bulk of the newly formed Azerbaijani army was engaged in putting down an Armenian revolt that had just broken out in Karabakh. The Azeris did not surrender their brief independence of 1918–20 quickly or easily. As many as 20,000 died resisting what was effectively a Russian reconquest. However, it has to be noticed that the installation of the Azerbaijan Soviet Socialist Republic was made easier by the fact that there was a certain popular support for Bolshevik ideology in Azerbaijan, in particular among the industrial workers in Baku. The same day a Soviet government was formed under Nariman Narimanov. Before the year was over, the same fate had befallen Armenia, and, in March 1921, Georgia as well.

Soviet Azerbaijan
After the surrender of the national government to Bolshevik forces, Azerbaijan was proclaimed a Soviet Socialist Republic on April 28, 1920. Shortly after, the Congress of the Peoples of the East was held in September 1920 in Baku. Although formally an independent state, the Azerbaijan SSR was dependent upon and controlled by the government in Moscow. It was incorporated into the Transcaucasian SFSR along with Armenia and Georgia in March 1922. By an agreement signed in December 1922, the TSFSR became one of the four original republics of the Soviet Union. The TSFSR was dissolved in 1936 and its three regions became separate republics within the USSR.

Like other union republics, Azerbaijan was affected by Stalin's purges in the 1930s. During that period, sometimes referred to as the "Red Terror", thousands of people were killed, including notable Azeri figures such as Huseyn Javid, Mikail Mushvig, Ruhulla Akhundov, Ayna Sultanova and others. Directing the purges in Azerbaijan was Mir Jafar Baghirov, the first secretary of the Communist Party of Azerbaijan, who followed Stalin's orders without question. His special target was the intelligentsia, but he also purged Communist leaders who had sympathized with the opposition or who might have once leaned toward Pan-Turkism or had contacts with revolutionary movements in Iran or Turkey.

During the 1940s, the Azerbaijan SSR supplied much of the Soviet Union's gas and oil during the war with Nazi Germany and was thus a strategically important region. The German invasion of the Soviet Union in June 1941 reached the Greater Caucasus in July 1942, but the Germans never crossed into the territory of Azerbaijan. Many Azerbaijanis fought well in the ranks of the Soviet Army (about 600–800,000) and Azeri Major-General Azi Aslanov was awarded twice Hero of the Soviet Union. About 400,000 Azeris died in World War II. The Germans also made fruitless efforts to enlist the cooperation of emigre political figures, most notably Mammed Amin Rasulzade.

Policies of de-Stalinization and improvement after the 1950s led to better education and welfare conditions for most of Azerbaijan. This also coincided with the period of rapid urbanization and industrialization. During this period of change, a new wave of sblizheniye (reapprochment) policy was instituted in order to merge all the peoples of the U.S.S.R. into a new monolithic Soviet nation.

In the 1960s, the signs of a structural crisis in the Soviet system began to emerge. Azerbaijan's crucial oil industry lost its relative importance in the Soviet economy, partly because of a shift of oil production to other regions of the Soviet Union and partly because of the depletion of known oil resources on land, while offshore production was not deemed cost effective. As a result, Azerbaijan had the lowest rate of growth in productivity and economic output among the Soviet republics, with the exception of Tajikistan. Ethnic tensions, particularly between Armenians and Azerbaijanis, began to grow, but violence was suppressed.

In an attempt to end the growing structural crisis, in 1969, the government in Moscow appointed Heydar Aliyev as the first secretary of the Communist Party of Azerbaijan. Aliyev temporarily improved economic conditions and promoted alternative industries to the declining oil industry, such as cotton. He also consolidated the republic's ruling elite, which now consisted almost entirely of ethnic Azeris, thus reverting the previous trends at "rapprochement". In 1982, Aliyev was made a member of the Communist Party's Politburo in Moscow, the highest position ever attained by an Azeri in the Soviet Union. In 1987, when Perestroika started, he was forced to retire by the Soviet leader Mikhail Gorbachev whose policies Aliyev opposed.

The late 1980s, during the Gorbachev era, were characterized by increasing unrest in the Caucasus, initially over the Nagorno-Karabakh issue. A political awakening came in February 1988 with the renewal of the ethnic conflict, which centered on Armenian demands for the unification of Nagorno-Karabakh Autonomous Oblast of Azerbaijan SSR Armenia by March 1988, while pogroms of the Armenian population in Baku and Sumgait took place. Russia forced enforced military rule on several occasions but unrest continued to spread.

The ethnic strife revealed the shortcomings of the Communist Party as a champion of national interests, and, in the spirit of glasnost, independent publications and political organizations began to emerge. Of these organizations, by far the most prominent was the Popular Front of Azerbaijan (PFA), which by the fall of 1989 seemed poised to take power from the Communist Party. The PFA soon experienced a split between a conservative-Islamic wing and a moderate wing. The split was followed by an outbreak of anti-Armenian violence in Baku and intervention by Soviet troops.

Unrest culminated in violent confrontation when Soviet troops killed 132 nationalist demonstrators in Baku on January 20, 1990. Azerbaijan declared its independence from the USSR on August 30, 1991, and became part of the Commonwealth of Independent States. By the end of 1991, fighting in Nagorno-Karabakh had escalated into a full-scale war, which culminated into a tense cease-fire that has persisted into the 21st century. Although a cease-fire was achieved, the refusal to negotiate by both sides resulted in a stalemate as Armenian troops retained their positions in Karabakh as well as corridors taken from Azerbaijan that connect the enclave to Armenia.

Mutalibov presidency (1991–1992)
While during 1990–1991 Azerbaijan gave more sacrifices in a struggle for independence from the USSR than any other Soviet republic, the declaration of independence introduced by President Ayaz Mutalibov on August 30, 1991 followed the 1991 Soviet coup d'état attempt. Mütallibov becomes the only Soviet leader besides Zviad Gamsakhurdia to endorse the Soviet coup attempt by issuing a statement from Tehran, while later dissolving the Communist Party of Azerbaijan and proposing constitutional changes for direct nationwide elections of the president.

On September 8, 1991, the first nationwide presidential elections, in which Mutalibov was the only running candidate, were held in Azerbaijan. While the elections were neither free nor fair by international standards, Mutalibov formally became the elected president of Azerbaijan. The adoption of the declaration of independence by the Supreme Soviet of Azerbaijan SSR on October 18, 1991, was followed by a dissolution of the Azerbaijani Communist Party. However, its former members, including President Ayaz Mutalibov, retained their political posts.

In December 1991 in a nationwide referendum, Azerbaijani voters approved the Declaration of Independence adopted by the Supreme Council; with the dissolution of the Soviet Union, Azerbaijan is recognized as independent state at first by Turkey, Israel, Romania and Pakistan. The United States followed suit on December 25.

Meanwhile, the conflict over Nagorno Karabakh continued despite the efforts to negotiate a settlement. Early in 1992, Karabakh's Armenian leadership proclaimed an independent republic. In what was now a full-scale war between Armenia and Azerbaijan, the Armenians gained the upper hand, with covert assistance from the Russian Army. Major atrocities were committed by both sides, with the Khojaly massacre of Azerbaijani civilians on February 25, 1992 causing a social uproar over the government inaction (also was the Maragha Massacre, in which Azeris killed indigenous Armenian civilians). Mütallibov was forced to submit his resignation to the National Assembly of Azerbaijan on March 6, under pressure from the Azerbaijan Popular Front.

Mutalibov's failure to build up an adequate army, that he feared may not remain under his control, brought about the downfall of his government. On May 6 the last Azerbaijani-populated town in Nagorno-Karabakh, Shusha, falls under Armenian control. On May 14 the Supreme Council of Azerbaijan hears the case on the Khojaly Massacre, relieves Mütallibov of any responsibility, reverses his prior resignation and restores him as the President of Azerbaijan, but the day after, May 15, armed forces led by the Azerbaijan Popular Front take control of the offices of the Parliament of Azerbaijan and Azerbaijani State Radio and Television, thereby deposing Mütallibov, who leaves for Moscow; the Supreme Council of Azerbaijan is dissolved passing the duties to the National Assembly of Azerbaijan formed by equal representation of Azerbaijan Popular Front and former communists. Two days later, while Armenian forces take control of Lachin, Isa Gambar is elected as the new Chairman of the National Assembly of Azerbaijan and takes on the temporary duties of President of Azerbaijan until the national elections due on June 17, 1992.

Elchibey presidency (1992–1993)
The former Communists failed to present a viable candidate at the 1992 elections and Abulfaz Elchibey, the leader of the Popular Front of Azerbaijan (PFA) and former dissident and political prisoner, was elected president with more than 60% of the vote. His program included opposition to Azerbaijan's membership in the Commonwealth of Independent States, closer relations with Turkey, and a desire for extended links with the Iranian Azerbaijanis.

Heydar Aliyev, who had been prevented from running for president by an age limit of 65, was doing well in Nakhichevan. He had to contend with an Armenian blockade of Nakhichevan. In turn, Armenia suffered when Azerbaijan halted all rail traffic into and out of Armenia, cutting most of its land links with the outside world. The negative economic effects of the Armenian-Azerbaijani conflict seemed to illustrate the interdependence of the Transcaucasian nations.

Within a year after his election, President Elchibey came to face the same situation that had led to the downfall of Mutalibov. The fighting in and around Nagorno Karabakh steadily turned in favor of the Armenians, who seized around one fifth of Azerbaijan's territory, creating more than a million internally displaced persons. A military rebellion against Abulfaz Elchibey broke out in early June 1993 in Ganja under the leadership of Colonel Surat Huseynov. The Popular Front of Azerbaijan leadership found itself without political support as a result of the war's setbacks, a steadily deteriorating economy, and opposition from groups led by Heydar Aliyev. In Baku, Aliyev seized the reins of power and quickly consolidated his position. A confidence referendum in August deprived Elchibey of his post.

Heydar Aliyev presidency (1993–2003)


On 3 October 1993 a presidential election was held, and Aliyev won overwhelmingly. By March 1994, Aliyev was able to get rid of some of his opposition including Surat Huseynov, who was arrested along with other rivals. In 1995, the former military police were accused of plotting a coup and disbanded. Coup plotters were linked to right wing Turkish nationalists. Later, in 1996 Rəsul Quliyev, former speaker of parliament went into self-imposed exile. Thus, by end of 1996, position of Heydar Aliyev as an absolute ruler in Azerbaijan was unquestionable.

As a result of limited reforms and the signing of the so-called "Contract of The Century" in October 1994 (over the Azeri-Chirag-Guneshli giant oil field) that led to increased oil exports to western markets, the economy began improving. However, extreme levels of corruption and nepotism in the state system created by Aliyev prevented Azerbaijan from more sustained development, especially in the non-oil sector.

In October 1998, Aliev was re-elected as president for a second term. Weakened opposition accused him of voter fraud, but no widespread international condemnation of the elections followed. His second term in office was characterized by limited reforms, increasing oil production and the dominance of British Petroleum as a main foreign oil company in Azerbaijan. In early 1999, a giant Shah Deniz gas field was discovered making Azerbaijan potentially a major gas exporter. A gas export agreement was signed with Turkey by 2003. Work on a long-awaited Baku-Tbilisi-Ceyhan oil pipeline and Baku-Tbilisi-Erzerum gas pipeline started in 2003. The oil pipeline was completed in 2005 and the gas pipeline in 2006. Azerbaijan is also a party to the proposed Nabucco Pipeline.

Heydar Aliyev fell ill and, in April 2003, collapsed on stage and could not return to public life. By summer 2003 he was placed into intensive care in the United States where he was pronounced dead on December 12, 2003.

Ilham Aliyev presidency (2003)
In yet another controversial election, his son Ilham Aliyev was elected president the same year. The election was characterized by mass violence and was criticised by foreign observers. Presently, political opposition to the Aliyev administration remains strong. Many were not satisfied with this new dynastical succession and were pushing for a more democratic government. Ilham Aliyev was re-elected in 2008 with 87% of the polls, while opposition parties boycotted the elections. In a constitutional referendum in 2009, term limits for the presidency were abolished and freedom of the press was restricted.

The 2010 parliamentary elections produced a Parliament completely loyal to Aliyev: for the first time in Azerbaijani history, not a single candidate from the main opposition Azerbaijan Popular Front or Musavat parties was elected. The Economist scored Azerbaijan as an authoritarian regime, placing it 135th out of 167 countries, in its 2010 Democracy Index.

Repeated protests were staged against Aliyev's rule in 2011, calling for democratic reforms and the ouster of the government. Aliyev has responded by ordering a security crackdown, using force to crush attempts at revolt in Baku, and refusing to make concessions. Well over 400 Azerbaijanis have been arrested since protests began in March 2011. Opposition leaders, including Musavat's Isa Gambar, have vowed to continue demonstrating, although police have encountered little difficulty in stopping protests almost as soon as they began.

On 24 October 2011 Azerbaijan was elected as a non-permanent member to United Nations Security Council. The term of office began on January 1, 2012.

Between 1 and 5 April 2016, there were renewed clashes between Armenian and Azerbaijani armed forces. (see 2016 Armenian–Azerbaijani clashes).