History of Lithuania the Lithuanian Chronicles and the Statutes of Lithuania, were all written in that language. German, Jewish and Armenian settlers were invited to live in Lithuania; the last two groups established their own denominational communities directly under the ruling dukes. The Tatars and Crimean Karaites were entrusted as soldiers for the dukes' personal guard. Towns developed to a much lesser degree than in nearby Prussia or Livonia. Outside of Ruthenia, the only cities were Vilnius (Gediminas' capital from 1323), the old capital of Trakai and Kaunas. Kernavė and Kreva were the other old political centers. Vilnius in the 14th century was
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