Baku Uyezd

Baku Uyezd (, ) was an administrative unit within the Baku Governorate of the Russian Empire and then of Azerbaijan Democratic Republic and Azerbaijan SSR with its centre in the city of Baku until its formal abolishment in 1929 by Soviet authorities. The uyezd was located in eastern part of the Baku Governorate, bordering Caspian sea to the east, Shamakhi Uyezd to the west, Kuba Uyezd to the north and Lankaran Uyezd to the south. The administrative center of the uyezd was Baku.
History.
After the capture of the Baku Khanate by the Russian Empire in 1806, during the Caucasus Campaign, the khanate was removed and was made a province of the Russian Empire. The uyezd was created in 1840 and was initially made part of the and later part of in 1846. Due to an earthquake in Shamakhi in 1859, the centre of the Shamakhi Governorate was moved from Shamakhi to Baku and the governorate was renamed Baku Governorate.
In 1918, after the collapse of the Russian Empire, Azerbaijan became part of Transcaucasian Democratic Federative Republic, during which March Massacre was committed against native Muslims in the city of Baku and other uyezds within the Baku Governorate.
After the collapse of the Transcaucasian Democratic Federative Republic, Azerbaijan Democratic Republic declared its independence on 28 May 1918. At the time, Bolshevik Baku Commune was in control of Baku until the Battle of Baku where Azerbaijan captured the city and relocated its capital from Ganja to Baku. The uyezd was kept as part of the country's administrative units.
After the Red Army invasion of Azerbaijan in 1920, Azerbaijan was integrated into the Soviet Union and the uyezd was abolished by Soviet authorities in 1929.
Population.
According to the 1897 Russian Empire census, 182,897 people lived in the uyezd, of which 111,904 were in the city of Baku. The census recorded 63,415 native speakers of Azerbaijani (the census indicates “tatar”) and 45,510 Russian.
The population rose to 527,220 people in the uyezd by 1926.