After the great offensive of 1915, the front line stabilized along the Daugava river until the Russian army started to collapse in early 1917. In February 1917 Revolution broke out in Russia and in the summer the Russian army collapsed. By this time the Riflemen had overwhelmingly transferred their allegiances to the Bolsheviks. The following German offensive was successful and on September 3, 1917 they entered Riga.