Did Germany attack the USSR?

Germany attacked the USSR and won many battles but in the end he lost to Russia's mighty force both in Russia and Germany.