Antiquity dating back to AD 84–96 Traces of human settlement in the region of present-day Baku date back to the
Stone Age.
Bronze Age rock carvings have been discovered near Bayil, and a bronze figure of a small fish in the territory of the Old City. These have led some to suggest the existence of a Bronze-Age settlement within the city's territory. Near
Nardaran, a place called Umid Gaya features a prehistoric observatory, where images of the sun and of various constellations are carved into rock together with a primitive astronomic table. Further archeological excavations have revealed various prehistoric settlements, native temples, statues and other artifacts within the territory of the modern city and around it. In the 1st century AD, the
Romans organised two Caucasian campaigns and reached what is today Baku. Near the city, in what is today
Gobustan, Roman inscriptions dating from AD 84 to 96 survive – some of the earliest written evidences for a city there. According to the 6th-century archbishop and historian St. Sophronius of Cyprus, in 71, St.
Bartholomew the Apostle was preaching Christianity in the city of Albana or Albanopolis, with majority academic consensus associating it with
Greater Armenia, although some associate it with either present-day Baku or
Derbent, both located by the
Caspian Sea. St. Bartholomew managed to convert even members of the local royal family who had worshipped the idol
Astaroth, but was later martyred by being
flayed alive and crucified head down on orders from the pagan king Astyages. The remains of St. Bartholomew were secretly transferred to
Mesopotamia.
Rise of the Shirvanshahs and the Safavid era marking the downfall of the
Shirvanshahs at the hands of the
Safavids Baku was the realm of the
Shirvanshahs during the 8th century AD. The city frequently came under assault from the
Khazars and (starting from the 10th century) from the
Rus'.
Akhsitan I built a navy in Baku and successfully repelled a Rus' assault in 1170. After a devastating earthquake struck
Shamakhi, the capital of
Shirvan, Shirvanshah's court moved to Baku in 1191. The Shirvan era greatly influenced Baku and the remainder of present-day Azerbaijan. Between the 12th and 14th centuries, massive fortifications were built in Baku and the surrounding towns. The
Maiden Tower, the
Ramana Tower, the
Nardaran Fortress, the Shagan Castle, the
Mardakan Castle, the
Round Castle and also the
Sabayil Castle on the island of the
Bay of Baku date from this period. The
city walls of Baku were also rebuilt and strengthened. By the early 16th century, Baku's wealth and strategic position attracted the attention of its larger neighbours; in the previous two centuries, it was under the rule of the Iran-centred
Kara Koyunlu and
Ak Koyunlu. The fall of the Ak Koyunlu brought the city immediately into the sphere of the newly formed Iranian
Safavid dynasty, led by king (
shah)
Ismail I (). Ismail I laid siege to Baku in 1501 and captured it; he allowed the Shirvanshahs to remain in power, under Safavid suzerainty. His successor, king
Tahmasp I (), completely removed the Shirvanshahs from power and made Baku a part of the
Shirvan province. Baku remained as an integral part of his empire and of successive Iranian dynasties for the next centuries, until ceded to the
Russian Empire through the 1813
Treaty of Gulistan. The House of Shirvan, which had ruled Baku since the 9th century, was extinguished in the course of Safavid rule. At this time, the city was enclosed within lines of strong walls, which were washed by the sea on one side and protected by a wide trench on land. The Ottomans briefly gained control over Baku as a result of the
Ottoman-Safavid War of 1578–1590; by 1607, it came under Iranian control again. In 1604 Shah
Abbas I () destroyed Baku fortress. is a temple built by Indian traders before 1745, west of the Caspian Sea. The inscription invokes Lord
Shiva in
Sanskrit at the Atashgah. Baku had a reputation as a focal point for traders from across the world during the
Early modern period; commerce was active and the area prospered. Notably, traders from the
Indian subcontinent established themselves in the region. These Indian traders built the
Ateshgah of Baku during 17th–18th centuries; the temple was used as a
Hindu,
Sikh, and
Zoroastrian place of worship.
Downfall of the Safavids and the Khanate of Baku The Safavids temporarily lost power in Iran in 1722; Emperor
Peter the Great of Russia took advantage of the situation and invaded. As a result of the
Russo-Persian War of 1722–1723, the Safavids were forced to cede Baku to Russia. By 1730 the situation had deteriorated for the Russians; the successes of
Nader Shah () led them to sign the
Treaty of Ganja near
Ganja on 10 March 1735, ceding the city and all other conquered territories in the Caucasus back to Iran. The eruption of instability following Nader Shah's death in 1747 gave rise to the various
Caucasian khanates. The semi-autonomous Persian-ruled
Russo-Persian Wars and Iran's cession From the late 18th century,
Imperial Russia switched to a more aggressive geopolitical stance towards its two neighbours and rivals to the south, namely Iran and the Ottoman Empire. In the spring of 1796, by
Catherine the Great's order, General
Valerian Zubov's troops started
a large campaign against
Qajar Persia. Zubov had sent 13,000 men to capture Baku, and it was overrun subsequently without any resistance. On 13 June 1796, a Russian flotilla entered Baku Bay, and a garrison of Russian troops was stationed inside the city. Later, however, Emperor
Paul I of Russia ordered the cessation of the campaign and the withdrawal of Russian forces following Catherine's death. In March 1797 the tsarist troops left Baku, and the city became part of
Qajar Iran again. In 1813, following the
Russo-Persian War of 1804–1813, Qajar Iran had to sign the
Treaty of Gulistan with Russia this provided for the cession of Baku and of most of Iran's territories in the
North Caucasus and
South Caucasus to Russia. During the next and final bout of hostilities between the two, the
Russo-Persian War of 1826–1828, the Iranians briefly recaptured Baku. However, the militarily superior Russians ended this war with a victory as well, and the resulting
Treaty of Turkmenchay (1828) made Baku's inclusion in the
Russian Empire definite. When Baku was occupied by the Russian troops during the
war of 1804–13, nearly the entire population of some 8,000 people was ethnic
Tat. In 1809, more than 95% of the population consisted of Azerbaijani Turks. By 1860, this proportion had slightly decreased to 94.4%. The city also included small minority communities. Baku within Russia was the administrative center of the
Baku Uyezd,
Baku Governorate, and the
Baku Gradonachalstvo. After the capture of Baku, the
Baku Khanate was abolished, and the city was governed under a military command system in the early years. In 1812, a city court was established where local customs and
Russian law were applied together. With the transition to civilian administration in 1840, Baku became a district center attached to the Caspian Province. Following the devastating earthquake in
Shamakhi in 1859, the city gained the status of a provincial capital and emerged as one of the major administrative and political centers of the
Caucasus. The social structure consisted of privileged groups such as beys and
Islamic religious figures, as well as merchants, craftsmen, and a wage-earning working class that developed in connection with port activities. The city was divided into two main areas: the Inner City (
Icherisheher) within the walls and the Forstadt outside the walls. In the second half of the nineteenth century, steps toward modernization were taken in the fields of infrastructure, education, and healthcare.
Discovery of oil The Russians built the first
oil-distilling factory in
Balaxani in 1837. The first person to drill oil in Baku was an ethnic
Armenian Ivan Mirzoev, who is also known as a 'founding father of Baku's oil industry.' Drilling for oil began in the 1840s, with the first
oil well drilled in the
Bibi-Heybat suburb of Baku in 1846. Large-scale
oil exploration started in 1872 when the Russian imperial authorities auctioned parcels of oil-rich land around Baku to private investors. The pioneer of oil extracting from the bottom of the sea was the Polish geologist
Witold Zglenicki. Soon after, investors appeared in Baku, including the
Nobel Brothers in 1873 and the
Rothschilds in 1882. An industrial area of oil refineries, better known as
Black Town (), developed near Baku by the early 1880s. Professor
A. V. Williams Jackson of Columbia University wrote in his work
From Constantinople to the Home of Omar Khayyam (1911): By the beginning of the 20th century, half of the oil sold in international markets was extracted in Baku. The
oil boom contributed to the massive growth of Baku. Between 1856 and 1910 Baku's population grew at a faster rate than that of London, Paris, New York City, or Tokyo.
World War I in Baku, In 1917, after the
October Revolution and amidst the turmoil of
World War I and the
Russian Revolution, Baku came under the control of the
Baku Commune, led by the veteran
Bolshevik Stepan Shahumyan. Seeking to capitalize on the existing ethnic conflicts, by spring 1918, Bolsheviks inspired and condoned civil war in and around Baku. During the
March Days of 1918, Bolsheviks and
Dashnaks, seeking to establish control over Baku streets, faced armed Azerbaijani groups. The Azerbaijanis suffered defeat from the united forces of the Baku Soviet and were massacred by Dashnak teams in what was called the
March Days. An estimated 3,000–12,000 Azerbaijanis were killed in their own capital. After the massacre, on 28 May 1918, the Azerbaijani faction of the
Transcaucasian Sejm proclaimed the independence of the
Azerbaijan Democratic Republic (ADR) in
Ganja, thereby founding the first Muslim-majority
democratic and secular republic. The newly independent Azerbaijani republic, being unable to defend the independence of the country on their own, asked the Ottoman Empire for military support in accordance with clause 4 of the treaty between the two countries. Shortly after, Azerbaijani forces, with support of the
Ottoman Army of Islam led by
Nuru Pasha, started their advance on Baku, eventually capturing the city from the loose coalition of
Bolsheviks,
SRs,
Dashnaks,
Mensheviks and British forces under the command of General
Lionel Dunsterville on 15 September 1918. After the
Battle of Baku of August–September 1918, the Azerbaijani irregular troops, with the tacit support of the Turkish command, conducted four days of pillaging and killing 10,000–30,000
Armenians of Baku. This
pogrom became known as the "
September Days". Shortly after this, Baku was proclaimed the new capital of the Azerbaijan Democratic Republic. The Ottoman Empire, recognising defeat in World War I by October 1918, signed the
Armistice of Mudros with the British (30 October 1918); this meant the evacuation of Turkish forces from Baku. Headed by General
William Thomson, some 5,000 British troops, including parts of the former
Dunsterforce, arrived in Baku on 17 November. Thomson declared himself military governor of Baku and implemented
martial law in the city until "the civil power would be strong enough to release the forces from the responsibility to maintain the public order". British forces left before the end of 1919.
Soviet period The independence of the Azerbaijani republic was a significant but short-lived chapter in Baku's history. On 28 April 1920, the
11th Red Army invaded Baku and reinstalled the Bolsheviks, making Baku the capital of the
Azerbaijan Soviet Socialist Republic within
Soviet Russia. The city underwent many major changes. As a result, Baku played a great role in many branches of Soviet life. Baku was the major oil city of the Soviet Union. From about 1921 the city was headed by the Baku City Executive Committee, commonly known in Russian as
Bakgorispolkom. Together with Baku Party Committee (known as the
Baksovet), it developed the economic significance of the Caspian metropolis. From 1922 to 1930 Baku became the venue for one of the major
trade fairs of the Soviet Union, serving as a commercial bridgehead to Iran and the Middle East.
World War II The major powers continued to note Baku's growing importance as a major energy hub. During
World War II (1939–1945) and particularly during the
1942 Nazi German invasion of the southwestern Soviet Union, Baku became of vital strategic importance to the
Axis powers. In fact, capturing the
oil fields of Baku was a primary goal of the
Wehrmacht's
Operation Edelweiss, carried out between May and November 1942. However, the
German Army reached only a point some northwest of Baku in November 1942, falling far short of the city's capture before being driven back during the Soviet
Operation Little Saturn in mid-December 1942.
Fall of the Soviet Union and later After the 1991
dissolution of the Soviet Union, Baku embarked on a process of restructuring on a scale unseen in its history. Thousands of
panel buildings from the Soviet period were demolished to make way for a green belt on its shores; parks and gardens were built on the land reclaimed by filling up the beaches of the
Baku Bay. Improvements were made in general cleaning, maintenance, and garbage collection to bring these services up to Western European standards. The city is growing dynamically and developing at pace on an east–west axis along the shores of the
Caspian Sea. Sustainability has become a key factor in future urban development. == Geography ==