In February 1945, with the war in Europe nearly over, Roosevelt, Churchill, and Stalin met at Yalta—a Soviet resort on the Black Sea—to plan the postwar world. Several agreements reached at Yalta later played an important role in causing the Cold War. A key issue discussed at Yalta was Poland. Shortly after the Germans had invaded Poland in 1939, the Polish government fled to Britain. In 1944, however, Soviet troops drove back the Germans and entered Poland. As they liberated Poland from German control, the Soviets encouraged Polish Communists to set up a new government. As a result, two governments claimed the right to govern Poland: one Communist and one non-Communist. President Roosevelt and Prime Minister Churchill both argued that the Poles should be free to choose their own government. Stalin, however, quickly pointed out that every time invaders had entered Russia from the west, they had come through Poland. Eventually, the three leaders compromised. Roosevelt and Churchill agreed to recognize the Polish government set up by the Soviets. Stalin agreed it would include members of the prewar Polish government, and free elections would be held as soon as possible.