After the capture of the
Quba Khanate by the Russian forces in 1806, during the
Russo-Persian War (1804–1813), the khanate was removed and was made a province of the Russian Empire. The
uezd was created in 1840 and was initially made part of the
Caspian Oblast in the same year, and later part of the
Shamakhi Governorate 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. After the establishment of the
Baku Commune in April 1918, clashes began in the city of
Baku and other
uezds within the
Baku Governorate, called the
March Days, during which 12,000 Azerbaijanis and other Muslims and 2,500 Armenians died. On 28 May 1918, the
Azerbaijan Democratic Republic declared its independence and the
uezd was kept as part of its administrative units. After the
Red Army invasion of Azerbaijan in 1920, Azerbaijan was integrated into the
Soviet Union and the
uezd was abolished by Soviet authorities in 1929. ==Demographics==