As there was a high demand of food but very little supply the inflation rose rapidly. Prices had gone up sharply but the wages of workers had gone up very little. A revolution was imminent.
b) In October 1917 the provisional government, now led by Kerensky, was overthrown by the Bolsheviks, led by Lenin. He promised that Russia would pull out of the war so to keep the people happy he had to abide by it.
However this is not the only factor that led to the decision of the withdrawal of Russia from the war.
In 1914 there were two serious disasters. At the battles of Tannenberg and the Masurian lakes. Russia lost about a quarter of a million men and valuable equipment. This seriously dented the morale of the country.
The Russian armies were also poorly led and in the summer of 1915 Nicholas II, the tsar made himself the supreme-commander of the forces. This was not a wise move. He was the one blamed for the all the failures incurred by the Germans.
He had also left his German-born wife in charge in Petrograd. She was badly seen by the Russian population and was thought of as a German spy. Rasputin heavily influenced her, a man thought of having healing powers but also having demonic forces behind him.
c) Russia had been very useful to the French and British on the Western front. Thousands of Germans and Austrians were tied up on the eastern front, so if the Russians left the war there would only be one front for the German forces to concentrate their attack on. This greatly worried the Allies as they had only a very short time to go until Germany would surrender (the blockade was taking its toll on the German army and population).
The Americans, British and French nations had sent a great number of supplies to Russia to help in the war effort. If the Russians surrendered the supplies would fall into Germanys hands and be used against the allies on the Western front