Following the capitulation of Germany in November 1918, the first Provisional Constitution of Lithuania was adopted and the first government of Prime Minister Augustinas Voldemaras was organized. At the same time, the army and other state institutions began to be organized. Lithuania fought three wars of independence: against the Bolsheviks who proclaimed the Lithuanian Soviet Socialist Republic, against the Bermontians, and against Poland. As a result of the staged Żeligowski's Mutiny in October 1920, Poland took control of Vilnius Region and annexed it as Wilno Voivodeship in 1922. Lithuania continued to claim Vilnius as its "de jure" capital (the "de facto", provisional capital being Kaunas) and relations with Poland remained particularly tense and hostile for the entire interwar period. In January 1923, Lithuania staged the Klaipėda Revolt and captured Klaipėda Region (Memel territory) which was detached from East Prussia by the Treaty of Versailles. The region became an autonomous region of Lithuania.