"Bayern" was assigned to the naval force that drove the Imperial Russian Navy from the Gulf of Riga during Operation Albion in October 1917, though the ship was severely damaged by a mine and had to be withdrawn to Kiel for repairs.