[2] Anania Shirakatsi Ateshi-Bagavan or simply Bagavan Nasir al-Din al-Tusi Starting from the 13th century AD the name of Baku begins to appear in mediaeval European Sources.
[5] Near Nardaran in a place called Umid Gaya, a prehistoric observatory was discovered, where on the rock the images of the sun and various constellations are carved together with a primitive astronomic table.
A record from the 5th-century historian Priscus of Panium was the first to mention the famous Bakuvian fires (ex petra maritima flamma ardet – from the maritime stone flame emerges).
[citation needed] Hulagu Khan occupied Baku under the domain of the Shirvan state during the third Mongol campaign in Azerbaijan (1231–1239) and it became a winter residence for Ilkhanids.
Bakuvian poet Nasir Bakui wrote a panegyric to Oljeitu thus creating the first piece of poetry in the Azerbaijani language.
They wrote that the "...town is a strange thing to behold, for there issueth out of the ground a marvellous quantity of oil, which serveth all the country to burn in their houses.
[citation needed] Baku is noted for being a focal point for traders from all across the world during the Early modern period, commerce was active and the area was prosperous.
These Indian traders built the Ateshgah of Baku during the 17th–18th centuries; the temple was used as a Hindu, Sikh, and Parsi place of worship.
[citation needed] On 26 June 1723, after a long siege, Baku surrendered to the Russians and the Safavids were forced to cede the city alongside many other of their Caucasian territories.
Peter the Great, while equipping a new military expedition commanded by General Mikhail Matyushkin, charged him with sending more oil from Baku to St. Petersburg, "which is a basis of an eternal and sacred flame"—Old Russian: "коя является основой вечного и священного пламени".
[citation needed] In 1733, Baku was visited by physician Ioann Lerkh, an employee of the Russian embassy and, like many others before him, described the city's oil fields.
After the disintegration of the Safavid Empire and after the death of Nader Shah, the semi-independent principality of Baku Khanate was formed in 1747 following the power vacuum which had been created.
[citation needed] By the end of the 18th century, Tsarist Russia now began a more firm policy with the intent to conquer all of the Caucasus at the expense of Persia and Ottoman Turkey.
[citation needed] In 1873, the Russian government offered competition for free land, and Baku caught the eye of the Nobel brothers.
In 1882, Ludvig Nobel invited technical staff to Baku from Finland, Sweden, Norway, and Germany and founded a colony that he called Villa Petrolea.
Famous Baku oil magnates of the era included Musa Nagiyev, Murtuza Mukhtarov, Shamsi Asadullayev, Seid Mirbabayev, and many others.
In the first years of the 20th century, a case considered in the district court won great popularity and lawyers from Petersburg, Moscow, Tiflis, and Kiev became involved because of fabulous fees often received there.
[clarification needed] The loudest litigations passed with the participation of a certain Karabek, who knew by heart the extensive code of laws of the Russian Empire and remembered all decrees of the Sacred Synod with exact reference numbers and dates.
In the beginning of October 1883, tsar Alexander III with his wife and two sons, accompanied by a huge retinue, arrived to Baku from Tiflis.
[This quote needs a citation] Having been defeated in World War I, Turkey had to withdraw its forces from the borders of Azerbaijan in the middle of November 1918.
Led by General William Thomson, British troops of 5,000 soldiers arrived in Baku on 17 November, and martial law was implemented on the capital of Azerbaijan Democratic Republic until "the civil power would be strong enough to release the forces from the responsibility to maintain the public order".
In February 1920, the 1st Congress of the Communist Party of Azerbaijan legally took place in Baku and made a decision about preparation of the armed revolt.
Soviet Russia presented the Azerbaijan Democratic Republic with an ultimatum to surrender, and the troops entered Baku the next day, accompanied by Grigory Ordzhonikidze and Sergey Kirov of the Bolshevik Kavbiuro.
From 1922 to 1930, Baku was the venue for one of the major Trade fairs of the Soviet Union, serving as a commercial bridgehead to Iran and the Middle East.
Maxim Gorkiy wrote after visiting Baku: "The oil fields remained in my memory as a perfect picture of the grave hell.
The US Ambassador to France, W. Bullitt, dispatched a telegram to Washington concerning "the possibilities of bombing and demolition of Baku" which were being discussed in Paris at the time.
In his report submitted on 22 February 1940, to French Prime Minister Édouard Daladier, General Maurice Gamelin believed the Soviets would fall into crisis if those resources were lost.
However, during the Soviet-German War, ten defense zones were built around the city to prevent possible German invasion,[25] planned within the Operation Edelweiss.
Thousands of buildings from Soviet Period were demolished to make way for a green belt on its shores; parks and gardens were built on the land claimed by filling up the beaches of the Baku Bay.
Namely, the first street ever to be built outside the Inner City, originally called Nikolayevskaya after Nicolas I, was renamed to Parlaman Kuchesi, because the Parliament of Azerbaijan Democratic Republic held its meeting in a building located at that street, then during soviet era it became Kommunisticheskaya Ulitsa and now is called İstiqlaliyyet Kuchesi (Azeri: "independence").