The USSR didn&#x27;t &quot;ally&quot; with Germany. They signed a non-aggression treaty, which basically meant they agreed to not attack each other while partitioning weaker states. Which is similar to what the western powers did together with Germany at the Munich agreement (which didn&#x27;t include the USSR).