In 1914, with the beginning of World War I, Saint Petersburg was renamed Petrograd and the governorate was accordingly renamed Petrograd Governorate. After the Russian Revolution, in 1918, the capital was transferred from Petrograd to Moscow, farther from the borders of the country. In 1919, during the Russian Civil War, the Northwestern White Army advancing from Estonia and led by Nikolai Yudenich tried to capture Petrograd and even managed to reach its southern outskirts, but the attack against the Red Army under Leon Trotsky ultimately failed, and Yudenich retreated. The border with Estonia was established in the Russian-Estonian Treaty of Tartu of 1920. Finland-backed Ingrian Finns of North Ingria attempted to secede in 1918–1920, but were incorporated back with the Russian-Finnish Treaty of Tartu, which settled the border between Finland and Soviet Russia. In 1924, Petrograd was renamed Leningrad and Petrograd Governorate was again renamed accordingly (Leningrad Governorate).