After the Russian Revolution of 1917, the Transcaucasian Democratic Federative Republic was established with Nikolay Chkheidze acting as its president. The federation consisted of three nations: Georgia, Armenia and Azerbaijan. As the Ottomans advanced into the Caucasian territories of the crumbling Russian Empire, Georgia declared independence on 26 May 1918. The Menshevik Social Democratic Party of Georgia won the parliamentary election and its leader, Noe Zhordania, became prime minister. Despite the Soviet takeover, Zhordania was recognized as the legitimate head of the Georgian Government by France, UK, Belgium, and Poland through the 1930s.