During World War I, Vilnius and the rest of Lithuania was occupied by the German Army from 1915 until 1918. The Act of Independence of Lithuania, which declared Lithuanian independence without any affiliation to any other nation, was issued in the city on 16 February 1918 with Vilnius as its capital.