On 28 May 1918, the Azerbaijan Democratic Republic declared its independence and the uyezd 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 uyezd was abolished by Soviet authorities in 1929.