Some historians consider a horizontal gold, black, and red tricolor, alike to that of the German flag but arranged differently led to the origin of Azerbaijan flag. When the Russian Empire collapsed, Russian Azerbaijan avowed its independence and combined the short-lived Transcaucasian Democratic Federative Republic with Georgia and Armenia.
In 1828, several Khanates of the Caucasus were seized to the Russian Empire.