There were two alliances that fought against each other and Russia was the part of the Triple Entente alliance.
Formation of alliances- Triple alliance parties were Germany, Austria -Hungary, and Italy and the Triple entente formed by England, France, and Russia, hence Russia fought against Germany, Austria.