Republic of Central Lithuania both Lithuanians and Poles. According to a German census analyst, "Objectively determining conditions of nationality comes up against the greatest difficulties." In the aftermath of the First World War, both Poland and Lithuania regained independence. The conflict between them soon arose as both Lithuania and Poland claimed Vilnius (known in Polish as Wilno) region. Demographically, the main groups inhabiting Vilnius were Poles and Jews, with Lithuanians constituting a small fraction of the total population (2.0%–2.6%, according to the Russian census of 1897 and the German census of 1916). The Lithuanians nonetheless believed that their historical claim to Vilnius (former capital
History of Lithuania 1410, but the allied armies failed to take Marienburg, the Knights' fortress-capital. Nevertheless, the unprecedented total battlefield victory against the Knights permanently removed the threat that they had posed to Lithuania's existence for centuries. The Peace of Thorn (1411) allowed Lithuania to recover Samogotia, but only until the deaths of Jogaila and Vytautas, and the Knights had to pay a large monetary reparation. The Union of Horodło (1413) incorporated Lithuania into Poland again, but only as a formality. In practical terms, Lithuania became an equal partner with Poland, because each country was obliged to choose its future ruler only with