in Germany. The Allied armies continued to push the Germans back through eastern France and in February and March 1945, back across the Rhine into Germany. A few pockets of German resistance remained in control of the main Atlantic ports until the end of the war on 8 May 1945. Immediately after liberation, France was swept by a wave of executions, assaults, and degradation of suspected collaborators, including shaming of women suspected of relationships with Germans. Courts set up in June 1944 carried out an épuration légale (official purge) of officials tainted by association with Vichy or the military occupation. Some defendants received death sentences, and faced a firing squad. The first elections since 1940 were organized in May 1945 by the Provisional Government; these municipal elections were the first in which women could vote. In referendums in October 1946, the voters approved a new constitution and the Fourth Republic was born 27 October 1946. Background Fall of France Nazi Germany invaded France and the Low Countries beginning on 10 May 1940. German forces split the French from their British allies by striking through the lightly defended Ardennes, whose topography French strategists had considered prohibitively difficult for tanks. The invaders forced the British Expeditionary Force to evacuate, and defeated several French divisions before they advanced to Paris, and down the strategic Atlantic coast. By June, the dire French military situation had French politics revolving around whether the Third Republic should negotiate an armistice, fight on from North Africa, or just surrender. Prime Minister Paul Reynaud wanted to keep fighting, but was outvoted and resigned. The government relocated several times ahead of advancing German troops, ending up in Bordeaux. President Albert Lebrun appointed 84-year-old war hero Philippe Pétain as his replacement on 16 June 1940. Within six weeks of the initial German assault, an overwhelmed French military faced imminent defeat. The cabinet agreed to seek peace terms and sent the Germans a delegation under General Charles Huntziger, with instructions to break off negotiations if the Germans demanded excessively harsh conditions such as the occupation of all of metropolitan France, the French fleet, or any of the French overseas territories. The Germans did not, however. Pierre Laval, a strong proponent of collaboration, arranged a meeting between Hitler and Pétain. It took place 24 October 1940 at Montoire on Hitler's private train. Pétain and Hitler shook hands and agreed to co-operate. The meeting