What did Lenin do to end Russia's involvement in the war?

First, Lenin moved into control of the country in the October 1917 Revolution, which overthrew the Provisional Government. The Provisional Government had taken over from Tsar Nicholas II in the February 1917 Revolution, but it was still committed to fighting the war against the Central Powers. Once Lenin ousted the Provisional Government, he arranged the Treaty of Brest-Litovsk between Russia and the Central Powers to end Russia's involvement in the war.