As a result of the Great Retreat during World War I, Germany occupied the entire territory of Lithuania and Courland by the end of 1915. A new administrative entity, Ober Ost, was established. Lithuanians lost all political rights they had gained: personal freedom was restricted, and at the beginning, the Lithuanian press was banned. However, the Lithuanian intelligentsia tried to take advantage of the existing geopolitical situation and began to look for opportunities to restore Lithuania's independence. On 18–22 September 1917, the Vilnius Conference elected the 20-member Council of Lithuania. The council adopted the Act of Independence of Lithuania on 16 February 1918 which proclaimed the restoration of the independent state of Lithuania governed by democratic principles, with Vilnius as its capital. The state of Lithuania which had been built within the framework of the Act lasted from 1918 until 1940.