Soviet Russia and Nazi Germany agreed not to attack each other in 1939. In June 1941, Germany broke the agreement and attacked in Operation Barbarossa. The attack was part of World War II. The war lasted in Europe until May 1945, and Russia lost more than 20 million people during that time. In spite of this large loss, Russia was one of the winners of the war and became a world superpower.