Despite the political unrest in Russia, in July 1917 General Brusilov was ordered to launch a new offensive. It was called the Kerensky Offensive - named after the Russian Minister for War Alexander Kerensky.
The offensive started well but some of the Russian soldiers objected to following the orders of their officers and some even launched revolts. When the Germans launched a counterattack in July, the Russians collapsed and they lost all of the ground they had won at the beginning of the offensive.
German troops rest in front of a church in the city of Riga, which they captured from the Russians in early September.