Shirvan Khanate was a self-governing [citation needed] khanate that existed in what is now Azerbaijan in 1748—1820.