"The Government of the German Reich and The Government of the Union of Soviet Socialist Republics[,] desirous of strengthening the cause of peace between Germany and the U.S.S.R., and proceeding from the fundamental provisions of the Neutrality Agreement concluded in April, 1926 between Germany and the U.S.S.R., have reached the following Agreement: Article I. Both High Contracting Parties obligate themselves to desist from any act of violence, any aggressive action, and any attack on each other, either individually or jointly with other Powers."
- Nazi-Soviet Non-Aggression Pact (also known as the "Molotov-Ribbentrop Pact"), 23 August 1939 - a pact which was quickly broken in 1941, when the Nazis invaded the Soviet Union
It's often cited as one of the great ironies of history - that the United States and the Soviet Union were allies during World War II, and then enemies during the Cold War. Why is this?
We were fighting against a greater enemy during World War II, which was Nazi Germany
The answer is long and a bit complicated, but essentially it boils down to this: We in America allied with Soviet Russia during World War II to fight against a greater enemy (Nazi Germany) that had actually declared war on us, when Soviet Russia had not. Later on, we watched with horror as the poor countries of Eastern Europe were passed from one dictator (Hitler) to another (Joseph Stalin), and reluctantly realized that the Soviet Union could be every bit as threatening as Nazi Germany had been. Thus, we fought hard to prevent its expansion into any further territory.
Adolf Hitler
Joseph Stalin
The common theme in our dealings with the Russians was America's national interest
These ideas might seem incompatible: Allying with the Russians during one five-year period, and being enemies with them for more than forty years after that. Yet the alliance and the later conflict both had a common theme in them, which was America's national interest. It was served by an alliance of necessity during World War II, and an opposition of equal necessity during the Cold War period.
Russian Revolution of 1917