He ended the war in Russia by signing the Treaty of Brest-Livokst. It is exactly what Germany wanted, by sending Lenin into Russia, the Bolsheviks forced Czar Nicholas 2 to abdicate and him taking power installing communism and creating the USSR then he pulled Rusian out of WWl.