Nazi Germany invaded France in May 1940 during the early part of World War II. The Armistice of 22 June 1940 ended hostilities, dividing France into two zones: an Occupied zone in the north and west, and a nominally "free zone" ("Zone libre") in the south and east. Known officially as the "French State", the became known as the "Vichy regime" for the location of its nominal capital. The regime was headed by Marshal Philippe Pétain, who was given full powers to control the regime. In November 1942, the was also occupied by the Germans, in response to the landing of the Allies in North Africa. Vichy lost its military force, but continued to exercise jurisdiction over most of Metropolitan France until the gradual collapse of the Vichy regime following the Allied invasion in June 1944 and the ongoing liberation of France.