Temporary capital of Lithuania changed hands frequently: on April 19, 1919, the city was seized by the regular Polish Army; on July 14, 1920, it was recaptured by Soviet forces. After the Soviet defeat in the Battle of Warsaw, Vilnius was handed to the Lithuanian authorities according to the Soviet–Lithuanian Peace Treaty of July 12, 1920. Poland continued to claim the city and organized Żeligowski's Mutiny to capture it in October 1920. Polish General Żeligowski established the Republic of Central Lithuania, which was incorporated into Poland in 1922. Such situation remained until 1939. In October 1939 the Soviets transferred the city, which they captured
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