In foreign policy, his government was torn between the traditional anti-militarism of the French Left and the urgency of the rising threat of Nazi Germany. The government cooperated with Britain and declared war on Germany when it invaded Poland in September 1939. Eight months of Phoney War thereafter, saw little or no movement. Suddenly in the spring of 1940, the Germans invaded France and defeated the French and British armies in a matter of weeks. The British Expeditionary Force evacuated from Dunkirk, taking many French soldiers along. France gave up, signing an armistice that gave Germany full control over much of France, with a rump Vichy government in control of the remainder as well as of the French colonial empire and the French Navy. The same Parliament that had sponsored the Popular Front program since 1936 remained in power; it voted overwhelmingly to make Marshal Philippe Pétain a dictator and reverse all of the gains of the French Third Republic.