During the Estonian War of Independence (1918-1920), the newly independent Republic of Estonia established control over the whole of Narva, including Ivangorod, in January 1919, a move which Soviet Russia recognized in the 1920 Treaty of Tartu. In January 1945 Soviet authorities defined the Narva River as the border between the Estonian SSR and Russian SFSR, and as a result the administration of Ivangorod transferred from Narva to the Kingiseppsky District of Leningrad Oblast. Having grown in population, Ivangorod gained town status on October 28, 1954.