Milyukov's announcement, in April 1917, that the government would continue fighting until a 'just peace had been won, led to a massive anti-war demonstration in Petrograd forcing Milyukov and Guchkov to resign. They were replaced by socialists in the soviet. Chernov became Minister of agriculture and Kerensky became Minister of War.