After the Russian Revolution of 1917, the city served as a location of the Transcaucasus interim government which established, in the spring of 1918, the short-lived independent Transcaucasian Federation with the capital in Tbilisi. At this time, Tbilisi had roughly the same number of Armenians as Georgians, with Russians being the third largest ethnic group. It was here, in the former Caucasus Vice royal Palace, where the independence of three Transcaucasus nations – Georgia, Armenia and Azerbaijan – was declared on 26 to 28 May 1918. After this, Tbilisi functioned as the capital of the Democratic Republic of Georgia until 25 February 1921. From 1918 to 1919 the city was also consecutively home to a German and British military headquarters.