 In August 1917, while Lenin was in Finland, General Lavr Kornilov, the Commander-in-Chief of the Russian Army, sent troops to Petrograd in what appeared to be a military coup attempt against the Provisional Government. Premier Alexander Kerensky turned to the Petrograd Soviet – including its Bolshevik members – for help, allowing the revolutionaries to organise workers as Red Guards to defend the city. The coup petered out before it reached Petrograd, although the events had allowed the Bolsheviks to return to the open political arena. Fearing a counter-revolution from right-wing forces hostile to socialism, the Mensheviks and Socialist Revolutionaries who dominated the Petrograd Soviet had been instrumental in pressurising the government to normalise relations with the Bolsheviks. Both the Mensheviks and Socialist Revolutionaries had lost much popular support because of their affiliation with the Provisional Government and its unpopular continuation of the war. The Bolsheviks capitalised on this, and soon the pro-Bolshevik Marxist Trotsky was elected leader of the Petrograd Soviet. In September, the Bolsheviks gained a majority in the workers' sections of both the Moscow and Petrograd Soviets.
