On June 22, 1940, France signed an armistice agreement with Nazi Germany ending hostilities between the two states after Germany's invasion of France, recognizing the German occupation of northern France and continued French jurisdiction in the south under the collaborative
Vichy government.

Read the armistice agreement
here.