Quba Khanate
Nevertheless, Quba Khanate, like other Transcaucasian khanates, was occupied by Czarist Russia in the early 19th century and formally annexed to the Russian Empire under the agreement of 1813. After the rehabilitation Quba was included in the Derbent province in 1840 and then in the Baku province in 1860.