The territory of the former Alsace–Lorraine, legally known as Alsace–Moselle, is a region in the eastern part of France, bordering with Germany. Its principal cities are Metz and Strasbourg. Alsace-Moselle was part of the German Empire from 1871 to 1918, and was subsequently reoccupied by Germany from 1940 until its recapture by the Allies at the end of World War II. Consisting of the two departments that make up the region of Alsace, which are Haut-Rhin and Bas-Rhin, and the department of Moselle, which is the northeastern part of Lorraine, there are historical reasons for the continuance of local law in Alsace-Moselle. Alsace–Moselle maintains its own local legislation, applying specific customs and laws on certain issues in spite of its being an integral part of France. These laws are principally in areas that France addressed by changing its own law in the period 1871–1919, when Alsace-Moselle was a part of Germany.