Before the Romanian Army′s summer 1917 offensive, Ragoza′s 4th Army was stationed in the Șușița Valley. The plan for the offensive called for Rogoza's army to provide support to the Romanian 1st Army, which was to advance in the foothills of the Carpathian Mountains. On 24 July 1917, the offensive began, with a component of Ragoza's army — General Pyotr Lomnovsky's 8th Army Corps — pushing back German forces. On 25 July 1917, Minister-Chairman of the Russian Provisional Government, Alexander Kerensky, issued an order canceling the operation. On 6 August 1917, German troops attacked the positions of the 4th Army and defeated the 12th Army Corps, which suffred the loss of about 3,000 men captured and 17 guns), but were stopped by artillery fire. This German success forced Ragoza to divert the 12th Army Corps to Siret, and the 8th Army Corps to Șușița. In the Battle of Mărășești, the 13th and 71st Infantry Divisions of the 4th Army's 6th Army Corps repulsed a German attack on Mărășești. On 9 August 9, 1917, Ragoza launched a counteroffensive in which his 8th Army Corps pushed back an Imperial German Army force under the command of General Weninger, and his 7th Army Corps joined Romanian troops driving back German troops under General Morgen. On 11 August 1917, German troops launched another attack at Panciu, driving on Mărășești. The blow was repulsed. Ragoza turned over the front to General Eremia Grigorescu's Romanian 1st Army, which replaced the Russian 8th Army Corps. On 13 August 1917, as conditions deterioriated for his troops, Ragoza ordered the evacuation of Mărășești. Grigorescu refused to comply, so Russian General of the Infantry Dmitry Shcherbachev, the deputy commander of Allied forces on the Romanian front, handed over the Mărășești sector to Grigorescu, including the Russian 8th Army Corps, and the rest of the 4th Army was transferred to northern Moldavia. In the Battle of Mărășești, Ragoza's 4th Army, which had begun with 70,000 men, lost 45,000 men, including about 5,000 captured.